diff --git a/README.md b/README.md index 3f26cbc..c7bbd20 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ - [Buffers, windows, tabs?](#buffers-windows-tabs) - [Active, loaded, listed, named buffers?](#active-loaded-listed-named-buffers) - [Mappings?](#mappings) +- [Mapleader?](#mapleader) - [Colorschemes?](#colorschemes) #### [Usage](#usage-1) @@ -137,6 +138,30 @@ Putting it in a nutshell, this solves our problem: :nnoremap a b ``` +#### Mapleader? + +The mapleader is simply a placeholder than can be used with custom mappings and +is set to `\` by default. +```viml +nnoremap h :helpgrep +``` +This mapping is triggered by `\h`. + +You can change the mapleader like this: + +```viml +let mapleader = ';' +``` + +**Note**: It's important that the mapleader is set before the mappings that use +it, otherwise `\` will be used anyway. + +Opposed to the global ``, there's is also `` which is +supposed to be used in filetype-specific plugins. There is no default set for +the local mapleader. + +See `:h mapleader` and `:h maplocalleader` for more. + #### Colorschemes? Colorschemes are the way to style your Vim. Vim consists of many components and