Add buffer management keys

This commit is contained in:
2014-06-06 17:15:08 +03:00
parent 1e5c93d131
commit 5da9bca366
+4 -2
View File
@@ -63,6 +63,10 @@ inoremap <Right> <Nop>
inoremap <Up> <Nop>
inoremap <Down> <Nop>
" Buffer Management
nnoremap <Leader>j :bp<CR>
nnoremap <Leader>k :bn<CR>
" Move lines up/down
nnoremap <C-Down> :m .+1<CR>==
nnoremap <C-Up> :m .-2<CR>==
@@ -77,7 +81,6 @@ vnoremap < <gv
nnoremap <Leader>p "+p
vnoremap <Leader>y "+y
" Automatically change current directory to that of the file in the buffer
autocmd BufEnter * cd %:p:h
@@ -85,7 +88,6 @@ autocmd BufEnter * cd %:p:h
" directory, and show all files that contain it
map <F4> :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cw<CR>
" Disable gvim toolbars by default
set guioptions-=T
set guioptions-=m