From 02a368550446f9d2ee959905e0d633dc0f4edc98 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 Nov 2017 13:39:30 +1300 Subject: Use consistent/thorough ftplugin/indent unloading Unload all maps too, with silent! in case they don't exist. --- vim/ftplugin/vim.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vim/ftplugin/vim.vim') diff --git a/vim/ftplugin/vim.vim b/vim/ftplugin/vim.vim index d4e55ace..e8113134 100644 --- a/vim/ftplugin/vim.vim +++ b/vim/ftplugin/vim.vim @@ -4,3 +4,7 @@ nnoremap \ l \ :write !vint -s /dev/stdin + +" Unload this filetype plugin +let b:undo_user_ftplugin + \ = 'silent! nunmap l' -- cgit v1.2.3