Mapleader: <localleader> also defaults to \

This commit is contained in:
Marco Hinz 2016-01-11 14:30:31 +01:00
parent 5583cb9132
commit dcc77b7f16

View File

@ -209,14 +209,14 @@ let mapleader = ' '
nnoremap <leader>h :helpgrep<space> nnoremap <leader>h :helpgrep<space>
``` ```
**Note**: Set the mapleader before the mappings! All the leader mappings that Moreover, there is `<localleader>` that is the local counterpart to `<leader>`
are in effect already, won't change just because the mapleader was changed. and is supposed to be used for mappings that are local to the buffer, eg.
`:nmap <leader>` will show all normal mode leader mappings with the mapleader filetype-specific plugins. It also defaults to `\`.
resolved already, so use it to double-check your mappings.
Opposed to the global `<leader>`, there's is also `<localleader>` which is **Note**: Set the mapleaders before mappings! All leader mappings that are in
supposed to be used in filetype-specific plugins. There is no default set for effect already, won't change just because the mapleader was changed. `:nmap
the local mapleader. <leader>` will show all normal mode leader mappings with the mapleader resolved
already, so use it to double-check your mappings.
See `:h mapleader` and `:h maplocalleader` for more. See `:h mapleader` and `:h maplocalleader` for more.