Added splitjoin plugin. Use sj and sk to split and join hashes into multiple lines.

This commit is contained in:
yan
2011-12-18 01:38:03 -08:00
committed by Yan Pritzker
parent 33cdf98c49
commit 8e68cbeac0
4 changed files with 17 additions and 7 deletions

View File

@@ -158,15 +158,16 @@ nnoremap <D-*> :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
nnoremap ' `
nnoremap ` '
" Tabularization. Hit ,a then type a character you want to align by
" The mnemonic is 'a' for align
" Tabularization. Hit Ctrl-a then type a character you want to align by
if exists(":Tabularize")
nmap ,a= :Tabularize /=<CR>
vmap ,a= :Tabularize /=<CR>
nmap ,a: :Tabularize /:\zs<CR>
vmap ,a: :Tabularize /:\zs<CR>
nmap <C-a> :Tabularize /
vmap <C-a> :Tabularize /
endif
" ===
" SplitJoin plugin
nmap sj :SplitjoinSplit<cr>
nmap sk :SplitjoinJoin<cr>
" ============================
" VimBookmarking