-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathmappings.txt
71 lines (70 loc) · 2.87 KB
/
mappings.txt
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
# my current vim mappings
,gg open up a git grep line, with a quote started for the search
K git grep the current word using K (mnemonic Kurrent)
,cc copy command to execute line we're looking at
,. last edit location
,b fuzzy finder buffer
,d nerdtree toggle
<C-\> nerdtree open directory tree and find current file
,t peep open / command-t
,/ quickfix menu with all latest search matches
<Tab> snippet autocomplete
<S-Tab> backwards snippet autocomplete
<C-h> move to left buffer
<C-j> move to top buffer
<C-k> move to bottom buffer
<C-l> move to right buffer
<Space> expand/contract fold level
,V vimroom toggle
<F2> beautify xml with xmllint
,cd change to root directory
,z searchfold normal
,Z searchfold disable
,iz searchfold inverse
,c<Space> nerdcommenter toggle
,c<Space> nerdcommenter toggle
,W remove all trailing whitespace
,cf put current file in system clipboard
,nf put current folder in command prompt
,nt put current folder in command prompt (with tab)
,X close buffer
,x hide buffer
,w toggle wrap
,f horizontal split
,v vertical split
,m maximize focused buffer
,l toggle/show relative line numbers
,s toggle/show end of line
,n toggle/show searches
// toggle/show searches
,es edit snippets
,rs reload snippets
,ev reload vimrc
,rv reload vimrc
,eh edit scratch.txt
,em edit mappings.txt
gr replace with register
H go to beginning of line
L go to end of line
[x unimpaired xmlencode
]x unimpaired xmldecode
[u unimpaired urlencode
]u unimpaired urldecode
[<Space> unimpaired blank up
]<Space> unimpaired blank down
aI :<C-U>cal <SNR>24_HandleTextObjectMapping(0, 1, 1, [line("'<"), line("'>"), col("'<"), col("'>")])<CR><Esc>gv
ai :<C-U>cal <SNR>24_HandleTextObjectMapping(0, 0, 1, [line("'<"), line("'>"), col("'<"), col("'>")])<CR><Esc>gv
iI :<C-U>cal <SNR>24_HandleTextObjectMapping(1, 1, 1, [line("'<"), line("'>"), col("'<"), col("'>")])<CR><Esc>gv
ii :<C-U>cal <SNR>24_HandleTextObjectMapping(1, 0, 1, [line("'<"), line("'>"), col("'<"), col("'>")])<CR><Esc>gv
gx <Plug>NetrwBrowseX
gS <Plug>VgSurround
g% v:<C-U>call <SNR>25_Match_wrapper('',0,'o') <CR>
g% :<C-U>call <SNR>25_Match_wrapper('',0,'v') <CR>m'gv``
g% :<C-U>call <SNR>25_Match_wrapper('',0,'n') <CR>
<Del> :bd<CR>
<Left> :bprev<CR>
<Right> :bnext<CR>
<C-N> :cn<CR>:cl<CR>
<C-P> :cp<CR>:cl<CR>
,gr :grep -r **/*.jsp<Left><Left><Left><Left><Left><Left><Left><Left><Left>
,gw "yyiw:grep -r <C-R>y *<CR>