]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/pack/stargrave/start/defsplit/plugin/defsplit.vim
Move to vim9script
[dotfiles.git] / vim / .vim / pack / stargrave / start / defsplit / 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>