From 5da9bca3667744f33eb12a9abf0d067681807de1 Mon Sep 17 00:00:00 2001 From: GeorgeSG Date: Fri, 6 Jun 2014 17:15:08 +0300 Subject: [PATCH] Add buffer management keys --- .vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index deb3928..29e04ad 100644 --- a/.vimrc +++ b/.vimrc @@ -63,6 +63,10 @@ inoremap inoremap inoremap +" Buffer Management +nnoremap j :bp +nnoremap k :bn + " Move lines up/down nnoremap :m .+1== nnoremap :m .-2== @@ -77,7 +81,6 @@ vnoremap < p "+p vnoremap 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 :execute "vimgrep /" . expand("") . "/j **" cw - " Disable gvim toolbars by default set guioptions-=T set guioptions-=m