From 7bb1a72385291e3c147973d0bebb6c2cecceaed6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 27 Jul 2018 13:47:29 -0700 Subject: [PATCH] Fixed up undo_ftplugin to be a good citizen. --- ftplugin/nomsu.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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<"