aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:58:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-01 23:58:19 +1200
commit8d87620cf7d312ecd9cf0b74e4668e1bfe9aa492 (patch)
treea76f7609bbabd2dc99c547f3b4f92eba51e24ded /vim/after
parent7814a00e2fd9f53aac70c930414de3b035111b30 (diff)
downloaddotfiles-8d87620cf7d312ecd9cf0b74e4668e1bfe9aa492.tar.gz
dotfiles-8d87620cf7d312ecd9cf0b74e4668e1bfe9aa492.zip
Clear away stock vim ftplugin's buffer maps
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/vim.vim28
1 files changed, 13 insertions, 15 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim
index 5fa9af61..5726e1e4 100644
--- a/vim/after/ftplugin/vim.vim
+++ b/vim/after/ftplugin/vim.vim
@@ -23,18 +23,16 @@ nnoremap <buffer> <LocalLeader>l
let b:undo_ftplugin = b:undo_ftplugin
\ . '|nunmap <buffer> <LocalLeader>l'
-" Add undo commands to fix clearing buffer-local vim maps that the core
-" ftplugin leaves in place
-let b:undo_ftplugin = 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> ["'
+" Just get rid of the core ftplugin's square-bracket maps; I don't use them
+silent! nunmap <buffer> [[
+silent! vunmap <buffer> [[
+silent! nunmap <buffer> ]]
+silent! vunmap <buffer> ]]
+silent! nunmap <buffer> []
+silent! vunmap <buffer> []
+silent! nunmap <buffer> ][
+silent! vunmap <buffer> ][
+silent! nunmap <buffer> ]"
+silent! vunmap <buffer> ]"
+silent! nunmap <buffer> ["
+silent! vunmap <buffer> ["