aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-25 19:12:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-25 19:12:28 +1200
commit02f8c846ca614fdf06bf6fcc77280c590337cdac (patch)
tree086744b1481ec0b34981e583168834f1bd64a13e
parent75f2d2f394c2dc1c8db7df54a774c8ef3af1fa17 (diff)
downloaddotfiles-02f8c846ca614fdf06bf6fcc77280c590337cdac.tar.gz
Add and apply new clear_local_maps.vim plugin
-rw-r--r--.gitmodules3
m---------vim/bundle/clear_local_maps0
-rw-r--r--vim/vimrc2
3 files changed, 4 insertions, 1 deletions
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
+Subproject b1038f42ef051f2829464b60d3a4aa13f3020d3
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 <buffer> <LocalLeader>p <Plug>DiffPrune