diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 00:57:28 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-04 00:57:28 +1300 |
commit | 55699ddf44405c16f5ad6fbad6022aaeb4373683 (patch) | |
tree | d8897c6f7c658a2d021bfe7ad4c6eff52d5d19ee | |
parent | Use underscore as local map leader (diff) | |
download | dotfiles-55699ddf44405c16f5ad6fbad6022aaeb4373683.tar.gz dotfiles-55699ddf44405c16f5ad6fbad6022aaeb4373683.zip |
Specify scope of mapleader variables
`vint -s` says:
vim/config/leader.vim:2:5: Make the scope explicit like
`g:mapleader` (see Anti-pattern of vimrc (Scope of identifier))
vim/config/leader.vim:3:5: Make the scope explicit like
`g:maplocalleader` (see Anti-pattern of vimrc (Scope of identifier))
This does still seem to work with the prefixes, despite not being the
way the documentation specifies the variables.
-rw-r--r-- | vim/config/leader.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/config/leader.vim b/vim/config/leader.vim index 2d7b98ae..9ca8f762 100644 --- a/vim/config/leader.vim +++ b/vim/config/leader.vim @@ -1,3 +1,3 @@ " Use different keys for global and local leaders -let mapleader = '\' -let maplocalleader = '_' +let g:mapleader = '\' +let g:maplocalleader = '_' |