aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-14 09:25:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-14 09:25:37 +1300
commitccce54dfbe19834a3af24649076d6b045dd55da0 (patch)
treeb4bc50035696a9d56dd0cf16dd40131efe7233ae
parentMerge branch 'feature/vim-plug' into develop (diff)
downloaddotfiles-ccce54dfbe19834a3af24649076d6b045dd55da0.tar.gz
dotfiles-ccce54dfbe19834a3af24649076d6b045dd55da0.zip
Move mapleader settings before .vimrc conf source
From :help mapleader: > Note that the value of "mapleader" is used at the moment the mapping > is defined. Changing "mapleader" after that has no effect for already > defined mappings. So the order of evaluation matters.
-rw-r--r--vim/config/leader.vim5
-rw-r--r--vim/vimrc6
2 files changed, 6 insertions, 5 deletions
diff --git a/vim/config/leader.vim b/vim/config/leader.vim
deleted file mode 100644
index e17aed06..00000000
--- a/vim/config/leader.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-" Use different keys for global and local leaders
-if has('eval')
- let g:mapleader = '\'
- let g:maplocalleader = '_'
-endif
diff --git a/vim/vimrc b/vim/vimrc
index eab24946..a44c5d2f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1,3 +1,9 @@
+" Use different keys for global and local leaders
+if has('eval')
+ let g:mapleader = '\'
+ let g:maplocalleader = '_'
+endif
+
" Load configuration files from ~/.vim/config or its analogue, before Pathogen
" loads all its directories into 'runtimepath'
runtime! config/*.vim