if exists("*defsplit#do") | finish | endif command! -nargs=? Defsplit call defsplit#do(["("], v:false, ) command! -nargs=? Brsplit call defsplit#do(["(", "[", "{"], v:false, ) command! -nargs=? Defsplits call defsplit#do(["("], v:true, ) command! -nargs=? Brsplits call defsplit#do(["(", "[", "{"], v:true, ) command! Undefsplit normal ^v%$J:keepp s/^\(.*\)\([([{]\) \(.*[^,]\),\?\([)\]}]\)\(.*\)$/\1\2\3\4\5:keepp s/, \?\([)\]}]\+\)$/\1/e: