]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/plugin/defsplit.vim
Vim scripts refactoring
[dotfiles.git] / vim / .vim / plugin / defsplit.vim
1 if exists("*defsplit#do") | finish | endif
2 command! -nargs=? Defsplit call defsplit#do(["("], v:false, <f-args>)
3 command! -nargs=? Brsplit call defsplit#do(["(", "[", "{"], v:false, <f-args>)
4 command! -nargs=? Defsplits call defsplit#do(["("], v:true, <f-args>)
5 command! -nargs=? Brsplits call defsplit#do(["(", "[", "{"], v:true, <f-args>)
6 command! Undefsplit normal ^v%$J:keepp s/^\(.*\)\([([{]\) \(.*[^,]\),\?\([)\]}]\)\(.*\)$/\1\2\3\4\5<CR>:keepp s/, \?\([)\]}]\+\)$/\1/e<CR>:<CR>