aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-25 11:31:14 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-25 11:31:14 +1200
commitfe13a23107a3ccd10de0488fecbbcc8c9acdcd65 (patch)
tree7716e40af68bc4f0c0129258935e7db505aa9897
parent3f3da5f08c4a7ea1e6c810d0443de5e27c590d5c (diff)
downloaddotfiles-fe13a23107a3ccd10de0488fecbbcc8c9acdcd65.tar.gz
dotfiles-fe13a23107a3ccd10de0488fecbbcc8c9acdcd65.zip
Clear away filetype buffer mappings in vimrc
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 13211067..a6a3beae 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -277,6 +277,9 @@ if has('autocmd') && v:version >= 700
augroup vimrc_filetype_mappings
autocmd!
+ " Clear away existing local mappings
+ autocmd FileType * mapclear <buffer>
+
" Diff: prune sections
autocmd FileType diff nmap <buffer> _p <Plug>DiffPrune
autocmd FileType diff xmap <buffer> _p <Plug>DiffPrune