-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathideavimrc
More file actions
117 lines (101 loc) · 4.47 KB
/
Copy pathideavimrc
File metadata and controls
117 lines (101 loc) · 4.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
""" -------- Mapppings --------------
let mapleader=" "
""" -------- Common settings --------
set visualbell
set noerrorbells
set hlsearch
set relativenumber
set number
set incsearch
set ignorecase smartcase
set clipboard+=unnamedplus
imap kj <Esc>
vnoremap // y/<C-R>"<CR>
vnoremap <leader>m :action ExtractFunction<CR>
vnoremap <leader>/ :action CommentByLineComment<CR>VV<CR>
""" Copying my astrovim config
nnoremap <leader>ld :action ShowErrorDescription<CR>
nnoremap gl :action ShowErrorDescription<CR>
nnoremap gI :action GotoImplementation<CR>
nnoremap gs :action GotoSuperMethod<CR>
nnoremap gh :action ShowErrorDescription<CR>
nnoremap gr :action FindUsages<CR>
nnoremap <leader>lR :action FindUsages<CR>
nnoremap <leader>lr :action RenameElement<CR>
nnoremap <leader>. :action NextTab<CR>
nnoremap <leader>, :action PreviousTab<CR>
nnoremap <leader>ff :action GotoFile<CR>
nnoremap <leader>lf :action ReformatCode<CR>
""" idea specific stuff
nnoremap <leader>c :action HideActiveWindow<CR>
nnoremap <leader>e :action Move<CR>
nnoremap <leader>d :action SafeDelete<CR>
nnoremap <leader>i :action SelectInProjectView<CR>
nnoremap <leader>q :action CloseContent<CR>
nnoremap <leader>w :action SaveAll<CR>
""" -------- PLUGINS ----------------
""" "Hello *world!" ds" Hello world!
""" [123+4*56]/2 cs]) (123+456)/2
""" "Look ma, I'm *HTML!" cs"<q> <q>Look ma, I'm HTML!</q>
""" if *x>3 { ysW( if ( x>3 ) {
""" my $str = *whee!; vllllS' my $str = 'whee!';
""" <div>Yo!*</div> dst Yo!
""" "hello" ysWfprint<cr> print("hello")
""" https://github.com/tpope/vim-surround/blob/master/doc/surround.txt
set surround
""" *gc*
""" gc{motion} Comment or uncomment lines that [ motion ] moves over.
"""
""" *gcc*
""" gcc Comment or uncomment [count] lines.
"""
""" *v_gc*
""" {Visual}gc Comment or uncomment the highlighted lines.
"""
""" *o_gc*
""" gc Text object for a comment (operator pending mode
""" only.)
"""
""" *gcgc* *gcu*
""" gcgc Uncomment the current and adjacent commented lines.
""" gcu
set commentary
""" [count]["x]gr{motion} Replace {motion} text with the contents of register x.
""" Especially when using the unnamed register, this is
""" quicker than "_d{motion}P or "_c{motion}<C-R>"
""" [count]["x]grr Replace [count] lines with the contents of register x.
""" To replace from the cursor position to the end of the
""" line use ["x]gr$
""" {Visual}["x]gr Replace the selection with the contents of register x.
set ReplaceWithRegister
""" highlights the yanked text
set highlightedyank
""" Lines with whitespace are also matched with { and }
set vim-paragraph-motion
""" Adds an argtextobj a for functions like function(arg: X, arg2: Y) e.g. yia, daa, cia, etc.
set argtextobj
""" Supports sneaking with s and S and ; and , to repeat
""" set sneak
""" cx{motion} Used in pairs.
""" FIRST USE: define the first region of text to be
""" exchanged. Any valid {motion} can be used.
""" SECOND USE: define the second region of text and
""" perform the exchange.
""" Note: If a region was defined accidentally, it can
""" be cleared with |cxc|
"""
""" *cxx* *exchange-define-line*
""" cxx Like |cx|, but for the current line. |linewise|
"""
""" *cxc* *exchange-clear*
""" cxc Clear any defined region of text (previously defined
""" by a |cx| command)
"""
""" *v_X* *exchange-visual*
""" {Visual}X Can be used in |visual-mode|.
set exchange
""" provide text objects (|ae| and |ie| by
""" default) to select the entire content of a buffer. Though these are trivial
""" operations (e.g. `ggVG`), text object versions are more handy, because you do
""" not have to be conscious of the cursor position (e.g. `vae`).
set textobj-entire