easier window shift

This commit is contained in:
Barak Michener 2013-04-20 13:28:53 -07:00
parent 423ea1587f
commit 7d9f6f5e24

11
.vimrc
View file

@ -201,7 +201,7 @@ set statusline+=\ %P "percent through file
" ** SMALL FUNCTIONS THAT DON'T FIT AS PLUGINS ***
" Add capital W so I can be lazy about my shift jey
" Add capital W so I can be lazy about my shift key
if !exists(":W")
command W :w
endif
@ -376,6 +376,15 @@ xnoremap <C-e> $
inoremap <C-a> <C-O>^
inoremap <C-e> <C-O>$
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
nnoremap <C-h> <C-w>h
inoremap <C-j> <C-w>j
inoremap <C-k> <C-w>k
inoremap <C-l> <C-w>l
inoremap <C-h> <C-w>h
" Better fold mappings
nnoremap <silent> <Space> @=(foldlevel('.')?'za':'l')<CR>
vnoremap <Space> zf