diff options
Diffstat (limited to 'vim/config')
-rw-r--r-- | vim/config/buffers.vim | 8 | ||||
-rw-r--r-- | vim/config/whitespace.vim | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/vim/config/buffers.vim b/vim/config/buffers.vim index 92055fea..ddd40b9f 100644 --- a/vim/config/buffers.vim +++ b/vim/config/buffers.vim @@ -4,3 +4,11 @@ set switchbuf=useopen if v:version >= 701 set switchbuf+=usetab endif + +" Cycle back and forth through buffers. +nnoremap <silent> + \ [b + \ :<C-U>bp<CR> +nnoremap <silent> + \ ]b + \ :<C-U>bn<CR> diff --git a/vim/config/whitespace.vim b/vim/config/whitespace.vim index 99974cb1..fd20e7e5 100644 --- a/vim/config/whitespace.vim +++ b/vim/config/whitespace.vim @@ -21,3 +21,7 @@ set nojoinspaces " \x strips trailing whitespace via a custom plugin nmap <Leader>x <Plug>StripTrailingWhitespace + +" Insert blank lines above and below via a custom plugin +nmap [<Space> <Plug>PutBlankLinesAbove +nmap ]<Space> <Plug>PutBlankLinesBelow |