mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Mapleader: <localleader> also defaults to \
This commit is contained in:
parent
5583cb9132
commit
dcc77b7f16
14
README.md
14
README.md
@ -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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user