From 02f8c846ca614fdf06bf6fcc77280c590337cdac Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 25 Jun 2018 19:12:28 +1200 Subject: Add and apply new clear_local_maps.vim plugin --- .gitmodules | 3 +++ vim/bundle/clear_local_maps | 1 + vim/vimrc | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 160000 vim/bundle/clear_local_maps diff --git a/.gitmodules b/.gitmodules index dd10f0e4..46810091 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,6 +5,9 @@ [submodule "vim/bundle/big_file_options"] path = vim/bundle/big_file_options url = https://sanctum.geek.nz/code/vim-big-file-options.git +[submodule "vim/bundle/clear_local_maps"] + path = vim/bundle/clear_local_maps + url = https://sanctum.geek.nz/code/vim-clear-local-maps.git [submodule "vim/bundle/copy_linebreak"] path = vim/bundle/copy_linebreak url = https://sanctum.geek.nz/code/vim-copy-linebreak.git diff --git a/vim/bundle/clear_local_maps b/vim/bundle/clear_local_maps new file mode 160000 index 00000000..b1038f42 --- /dev/null +++ b/vim/bundle/clear_local_maps @@ -0,0 +1 @@ +Subproject commit b1038f42ef051f2829464b60d3a4aa13f3020d35 diff --git a/vim/vimrc b/vim/vimrc index 720d3f3a..12892474 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -280,7 +280,7 @@ if has('autocmd') && v:version >= 700 autocmd! " Clear existing local leader maps - autocmd FileType * call vimrc#ClearLocalLeaderMaps() + autocmd FileType * silent! call clear_local_maps#Clear() " Diff: prune sections autocmd FileType diff nmap p DiffPrune -- cgit v1.2.3