Skip to content
Browse files

added binding for splitting a file in columns

  • Loading branch information...
1 parent d95a068 commit 5949c0f41ca2159fde2be2f260f9592284f9b63a @jessor committed Jul 13, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 .vimrc
4 .vimrc
@@ -53,6 +53,10 @@ nnoremap <F4> :call g:ToggleNuMode()<CR>
" copy selected text to clipboard with ^C
map <C -c> "+y
+" press \vs to split file in multiple columns, Ctrl-W o to go back to a single
+" window.
+:noremap <silent> <Leader>vs :<C-u>let @z=&so<CR>:set so=0 noscb<CR>:bo vs<CR>Ljzt:setl scb<CR><C-w>p:setl scb<CR>:let &so=@z<CR>
" convenience over simplicity
:command WQ wq
:command Wq wq

0 comments on commit 5949c0f

Please sign in to comment.
Something went wrong with that request. Please try again.