From 98b0fd5efec72205d11d847afebc2d141a691b3f Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 11 Jan 2016 13:20:20 +0100 Subject: [PATCH] Mapleader: improve example, mention `:nmap ` --- CHANGELOG.md | 1 + README.md | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0c4796..f107385 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file. ### Changed +- Basics: Improved [Mapleader?](README.md#mapleader) - Usage: rewrote [Clipboard](README.md#clipboard) ## [1.1] - 2016-01-07 diff --git a/README.md b/README.md index 6efd64b..0882126 100644 --- a/README.md +++ b/README.md @@ -202,16 +202,17 @@ is set to `\` by default. nnoremap h :helpgrep ``` -This mapping is triggered by `\h`. - -You can change the mapleader like this: +This mapping is triggered by `\h`. If you want to use `h` instead: ```viml -let mapleader = ';' +let mapleader = ' ' +nnoremap h :helpgrep ``` -**Note**: It's important that the mapleader is set before the mappings that use -it, otherwise `\` will be used anyway. +**Note**: Set the mapleader before the mappings! All the leader mappings that +are in effect already, won't change just because the mapleader was changed. +`:nmap ` will show all normal mode leader mappings with the mapleader +resolved already, so use it to double-check your mappings. Opposed to the global ``, there's is also `` which is supposed to be used in filetype-specific plugins. There is no default set for