aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-02 15:02:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-02 15:02:50 +1200
commit8fd6554bd76af09c8c99266d7a8cb6425b376b38 (patch)
tree068cfc1672e336a66fced90dcd39ce63b1c93ca9 /vim
parentMerge branch 'release/v0.40.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-0.41.0.tar.gz (sig)
dotfiles-0.41.0.zip
Merge branch 'release/v0.41.0'v0.41.0
* release/v0.41.0: Bump VERSION Remove abolish.vim and commentary.vim Remove unimpaired.vim
Diffstat (limited to 'vim')
m---------vim/bundle/put_blank_lines0
m---------vim/bundle/unimpaired0
-rw-r--r--vim/config/buffers.vim8
-rw-r--r--vim/config/whitespace.vim4
4 files changed, 12 insertions, 0 deletions
diff --git a/vim/bundle/put_blank_lines b/vim/bundle/put_blank_lines
new file mode 160000
+Subproject c25c045419bf818ff4a6474600e92a29f7ee7c9
diff --git a/vim/bundle/unimpaired b/vim/bundle/unimpaired
deleted file mode 160000
-Subproject fe7d2241df475de631b8891fdccd20bf9a7574d
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