Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *<Leader>* *mapleader*
- To define a mapping which uses the "mapleader" variable, the special string
- "<Leader>" can be used. It is replaced with the string value of "mapleader".
- If "mapleader" is not set or empty, a backslash is used instead. Example: >
- :map <Leader>A oanother line<Esc>
- Works like: >
- :map \A oanother line<Esc>
- But after: >
- :let mapleader = ","
- It works like: >
- :map ,A oanother line<Esc>
- 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.
- *<LocalLeader>* *maplocalleader*
- <LocalLeader> is just like <Leader>, except that it uses "maplocalleader"
- instead of "mapleader". <LocalLeader> is to be used for mappings which are
- local to a buffer. Example: >
- :map <LocalLeader>q \DoItNow
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement