]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Don't draw vertical split separator.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 732941ae20f8cc35c74dad34832af7e222304f52..f0e4e26e216d7e9ce14586d6d1065affdc4c3ae0 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -235,6 +235,14 @@ if v:version >= 700
     set listchars+=nbsp:!
 endif
 
+" Don't draw the vertical split separator by using space as character. Thanks
+" to scp1 in #vim on Freenode (2012-06-16 16:12 CEST) for the idea to use a
+" non-breakable space. But a simple space works as well, as long as the
+" current color scheme is not reset.
+if has('windows') && has('folding')
+    set fillchars+=vert:\  " comment to prevent trailing whitespace
+endif
+
 if has('statusline')
     " Always display the status line even if there is only one window.
     set laststatus=2
@@ -365,7 +373,7 @@ nmap - <C-B>
 " Go to next and previous buffer. Thanks to elik in #vim on Freenode
 " (2010-05-16 18:38 CEST) for this idea.
 nnoremap <silent> gb :bnext<CR>
-nnoremap <silent> gB :bprev<CR>
+nnoremap <silent> gB :bprevious<CR>
 
 " Fast access to buffers.
 nnoremap <silent> <Leader>1 :1buffer<CR>