diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-29 23:36:46 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-29 23:36:46 +1300 |
commit | 381b85d5067f496d65faa9fab54752299f61ad98 (patch) | |
tree | d98a870d8f3f5bdc18e87dd12fa71d960be7daf4 | |
parent | Add missing detail to a comment (diff) | |
download | dotfiles-381b85d5067f496d65faa9fab54752299f61ad98.tar.gz dotfiles-381b85d5067f496d65faa9fab54752299f61ad98.zip |
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.
-rw-r--r-- | vim/after/ftplugin/php.vim | 6 | ||||
-rw-r--r-- | vim/after/ftplugin/vim.vim | 17 |
2 files changed, 0 insertions, 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 <buffer> [[' - \ . '|ounmap <buffer> [[' - \ . '|nunmap <buffer> ]]' - \ . '|ounmap <buffer> ]]' 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 <buffer> <LocalLeader>K \ :<C-U>helpgrep <cword><CR> let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>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 <buffer> [[' - \ . '|vunmap <buffer> [[' - \ . '|nunmap <buffer> ]]' - \ . '|vunmap <buffer> ]]' - \ . '|nunmap <buffer> []' - \ . '|vunmap <buffer> []' - \ . '|nunmap <buffer> ][' - \ . '|vunmap <buffer> ][' - \ . '|nunmap <buffer> ]"' - \ . '|vunmap <buffer> ]"' - \ . '|nunmap <buffer> ["' - \ . '|vunmap <buffer> ["' -endif |