-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbindings.vim
55 lines (42 loc) · 1.08 KB
/
bindings.vim
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
" Key bindings
" set mapleader
let mapleader = ","
let maplocalleader = "\\"
" disable search highlight
nmap <silent> <C-N> :silent noh<CR>
" ,e to fast finding files. just type beginning of a name and hit TAB
nmap <leader>e :e **/
" ,n to get the next location (compilation errors, grep etc)
nmap <leader>n :cn<CR>
nmap <leader>N :cp<CR>
" keep selection after in/outdent
vnoremap < <gv
vnoremap > >gv
" easier increment/decrement
nnoremap + <C-a>
nnoremap - <C-x>
" easy split navigation
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" nerdtree
" Ctrl-P to Display the file browser tree
nmap <C-P> :NERDTreeTabsToggle<CR>
" ,p to show current file in the tree
nmap <leader>p :NERDTreeFind<CR>
" yankring
let g:yankring_replace_n_pkey = '<leader>['
let g:yankring_replace_n_nkey = '<leader>]'
" ,y to show the yankring
nmap <leader>y :YRShow<cr>
" ctrlp
let g:ctrlp_map = '<leader>,'
let g:ctrlp_cmd = 'CtrlP'
" fugitive
nmap <leader>g :silent Ggrep<space>
nmap <leader>D :Gdiff<space>
" tagbar
nmap <F8> :TagbarToggle<CR>
" eunuch
nmap <C-m> :Move