c14b8d8f42b5

Splitjoin.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 17 Aug 2011 11:18:42 -0400
parents 00e4e08af4f5
children 61543c43271e
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Wed Aug 17 10:37:40 2011 -0400
+++ b/vim/.vimrc	Wed Aug 17 11:18:42 2011 -0400
@@ -556,6 +556,9 @@
 " Replaste
 nnoremap <D-p> "_ddPV`]
 
+" Splitjoin
+nnoremap K h/[^ ]<cr>"zd$jyyP^v$h"zpJk:s/\v +$//<cr>:noh<cr>j^
+
 " }}}
 " Plugin settings ------------------------------------------------------------- {{{