diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-14 09:25:37 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-14 09:25:37 +1300 |
commit | ccce54dfbe19834a3af24649076d6b045dd55da0 (patch) | |
tree | b4bc50035696a9d56dd0cf16dd40131efe7233ae /vim/vimrc | |
parent | Merge branch 'feature/vim-plug' into develop (diff) | |
download | dotfiles-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.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |