forked from vicalejuri/startervim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc-keymaps
48 lines (38 loc) · 990 Bytes
/
vimrc-keymaps
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
let mapleader = ","
"
" Fixing some vim defaults baddy
"
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
nnoremap j gj
nnoremap k gk
" Indent using tabs (while in visual mode)
vnoremap <tab> >gv
vnoremap <s-tab> <gv
vnoremap < <gv
vnoremap > >gv
" Search only in the selected block (visual mode)
vnoremap / <esc>/\%V
" Scroll using C-j and C-k
nnoremap <C-j> <C-d>
nnoremap <C-k> <C-u>
" Toggle line-numbering
nn <leader>n <esc>:set number! number?<cr>
" Nerd Tree
nmap <leader>o :NERDTreeToggle<cr>
nmap <leader>O :NERDTreeFind<cr>
" Lusty explorer
"nmap <leader>t :LustyFilesystemExplorer<cr>
"nmap <leader>e :LustyBufferExplorer<cr>
"nmap <leader><leader> :LustyJuggler<cr>
" Fuf Finder
"nmap <leader>b :FufFile **/<cr>
" Russian keyboard support ...
nmap rrr :set keymap=russian-jcuken<cr>
nmap eee :set keymap &<cr>