diff --git a/ftplugin/nomsu.vim b/ftplugin/nomsu.vim index bc963f3..897ded3 100644 --- a/ftplugin/nomsu.vim +++ b/ftplugin/nomsu.vim @@ -13,4 +13,6 @@ setlocal cpoptions+=M setlocal foldmethod=indent normal zR -let b:undo_ftplugin = "setlocal formatoptions<" +command! NomsuHideTests :g/^\s*test:$/exe "normal! jzc" + +let b:undo_ftplugin = "setlocal formatoptions< iskeyword< cpoptions< foldmethod<"