From 381b85d5067f496d65faa9fab54752299f61ad98 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 29 Nov 2018 23:36:46 +1300 Subject: Remove some overzealous b:undo_* setting It's not that these shouldn't be set, it's more that it's the wrong place to do it, especially before they've caused any actual problems. --- vim/after/ftplugin/php.vim | 6 ------ vim/after/ftplugin/vim.vim | 17 ----------------- 2 files changed, 23 deletions(-) diff --git a/vim/after/ftplugin/php.vim b/vim/after/ftplugin/php.vim index 172256db..688166ba 100644 --- a/vim/after/ftplugin/php.vim +++ b/vim/after/ftplugin/php.vim @@ -16,9 +16,3 @@ let b:undo_ftplugin .= '|setlocal keywordprg<' if exists('g:no_plugin_maps') || exists('g:no_php_maps') finish endif - -" Get rid of the core ftplugin's square-bracket maps on unload -let b:undo_ftplugin .= '|nunmap [[' - \ . '|ounmap [[' - \ . '|nunmap ]]' - \ . '|ounmap ]]' diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim index 9f6245a5..a7a69993 100644 --- a/vim/after/ftplugin/vim.vim +++ b/vim/after/ftplugin/vim.vim @@ -14,20 +14,3 @@ endif nnoremap K \ :helpgrep let b:undo_ftplugin .= '|nunmap K' - -" Get rid of the core ftplugin's square-bracket maps on unload -" 8.1.273 updated the runtime files to include a fix for this -if v:version < 801 || v:version == 801 && !has('patch273') - let b:undo_ftplugin .= '|nunmap [[' - \ . '|vunmap [[' - \ . '|nunmap ]]' - \ . '|vunmap ]]' - \ . '|nunmap []' - \ . '|vunmap []' - \ . '|nunmap ][' - \ . '|vunmap ][' - \ . '|nunmap ]"' - \ . '|vunmap ]"' - \ . '|nunmap ["' - \ . '|vunmap ["' -endif -- cgit v1.2.3