From 3e4458b70c8670d5a8c98ef245edd3611bd39354 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 16 Aug 2018 15:06:59 +1200 Subject: Qualify unmap with version number guard --- vim/after/ftplugin/vim.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim index bfac623a..570a9443 100644 --- a/vim/after/ftplugin/vim.vim +++ b/vim/after/ftplugin/vim.vim @@ -19,7 +19,9 @@ nnoremap K let b:undo_ftplugin .= '|nunmap K' " Get rid of the core ftplugin's square-bracket maps on unload -let b:undo_ftplugin .= '|nunmap [[' +" 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 ]]' @@ -31,3 +33,4 @@ let b:undo_ftplugin .= '|nunmap [[' \ . '|vunmap ]"' \ . '|nunmap ["' \ . '|vunmap ["' +endif -- cgit v1.2.3