Permalink
Browse files

added buffer manipulation mappings to the vimrcs, added bclose.vim

  • Loading branch information...
1 parent c338c34 commit 6b09a4c21d2b2001ced9b83fe97f0ae7c7824d98 @bruschill committed Oct 26, 2011
Showing with 11 additions and 0 deletions.
  1. +1 −0 bclose.vim
  2. +5 −0 gvimrc
  3. +5 −0 vimrc
View
@@ -1,5 +1,6 @@
" Delete buffer while keeping window layout (don't close buffer's windows).
" Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165
+" Licensed under CC-BY-SA
if v:version < 700 || exists('loaded_bclose') || &cp
finish
endif
View
5 gvimrc
@@ -75,6 +75,11 @@ set backspace=indent,eol,start
" setting enhanced command line completion
set wildmenu
+" setting buffer switching/closing mappings
+nnoremap <silent> <C-S-n> :bn<CR>
+nnoremap <silent> <C-S-p> :bp<CR>
+nnoremap <silent> <C-S-c> :Bclose<CR>
+
" gvimrc edit/reload mappings
nmap <silent> <Leader>ve :e ~/.gvimrc.local<CR>
nmap <silent> <Leader>vr :so ~/.gvimrc.local<CR>
View
5 vimrc
@@ -75,6 +75,11 @@ set backspace=indent,eol,start
" setting enhanced command line completion
set wildmenu
+" setting buffer switching/closing mappings
+nnoremap <silent> <C-S-n> :bn<CR>
+nnoremap <silent> <C-S-p> :bp<CR>
+nnoremap <silent> <C-S-c> :Bclose<CR>
+
" gvimrc edit/reload mappings
nmap <silent> <Leader>ve :e ~/.gvimrc.local<CR>
nmap <silent> <Leader>vr :so ~/.gvimrc.local<CR>

0 comments on commit 6b09a4c

Please sign in to comment.