From 317e4603dc9b930ab65ad8cdcddc1605642c8368 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 8 Jul 2018 13:35:35 +1200 Subject: Restore Vim buffer mapping to unload script --- vim/after/ftplugin/vim.vim | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim index 5726e1e4..6c04e1f4 100644 --- a/vim/after/ftplugin/vim.vim +++ b/vim/after/ftplugin/vim.vim @@ -23,16 +23,17 @@ nnoremap l let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap l' -" Just get rid of the core ftplugin's square-bracket maps; I don't use them -silent! nunmap [[ -silent! vunmap [[ -silent! nunmap ]] -silent! vunmap ]] -silent! nunmap [] -silent! vunmap [] -silent! nunmap ][ -silent! vunmap ][ -silent! nunmap ]" -silent! vunmap ]" -silent! nunmap [" -silent! vunmap [" +" Get rid of the core ftplugin's square-bracket maps on unload +let b:undo_ftplugin = b:undo_ftplugin + \ . '|silent! nunmap [[' + \ . '|silent! vunmap [[' + \ . '|silent! nunmap ]]' + \ . '|silent! vunmap ]]' + \ . '|silent! nunmap []' + \ . '|silent! vunmap []' + \ . '|silent! nunmap ][' + \ . '|silent! vunmap ][' + \ . '|silent! nunmap ]"' + \ . '|silent! vunmap ]"' + \ . '|silent! nunmap ["' + \ . '|silent! vunmap ["' -- cgit v1.2.3