mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-10 10:43:48 -05:00
Added help section about the Leader key (#385)
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
CONTENTS *NERDCommenterContents*
|
CONTENTS *NERDCommenterContents*
|
||||||
|
|
||||||
1.Intro...................................|NERDCommenter|
|
1.Intro...................................|NERDCommenter|
|
||||||
|
1.1 Leader............................|NERDCommenterLeader|
|
||||||
2.Installation............................|NERDCommenterInstallation|
|
2.Installation............................|NERDCommenterInstallation|
|
||||||
3.Functionality provided..................|NERDCommenterFunctionality|
|
3.Functionality provided..................|NERDCommenterFunctionality|
|
||||||
3.1 Functionality Summary.............|NERDCommenterFunctionalitySummary|
|
3.1 Functionality Summary.............|NERDCommenterFunctionalitySummary|
|
||||||
@@ -55,6 +56,20 @@ for most filetypes.
|
|||||||
There are also options that allow to tweak the commenting engine to your
|
There are also options that allow to tweak the commenting engine to your
|
||||||
taste.
|
taste.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
1.1 Leader key *NERDCommenterLeader*
|
||||||
|
|
||||||
|
Most NERD commenter commands are executed using the |<Leader>| key. In Vim
|
||||||
|
this is a key dedicated for user-specific customizations. It effectively
|
||||||
|
creates a namespace so that custom commands don't interfere with Vim's
|
||||||
|
built-in shortcuts.
|
||||||
|
|
||||||
|
The leader key can be mapped to whatever the user likes (see :help mapleader).
|
||||||
|
In the definition of custom commands |<Leader>| is the placeholder for the
|
||||||
|
leader key. To see the current mapping for |<Leader>| type :echo mapleader.
|
||||||
|
If it reports an undefined variable it means the leader key is set to the
|
||||||
|
default of '\'.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Installation *NERDCommenterInstallation*
|
2. Installation *NERDCommenterInstallation*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user