mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
Mention g:NERDCreateDefaultMappings in README.md (#445)
This commit is contained in:
@@ -76,6 +76,9 @@ Please see the vim help system for full documentation of all options: `:help ner
|
|||||||
Several settings can be added to your vimrc to change the default behavior. Some examples:
|
Several settings can be added to your vimrc to change the default behavior. Some examples:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
|
" Create default mappings
|
||||||
|
let g:NERDCreateDefaultMappings = 1
|
||||||
|
|
||||||
" Add spaces after comment delimiters by default
|
" Add spaces after comment delimiters by default
|
||||||
let g:NERDSpaceDelims = 1
|
let g:NERDSpaceDelims = 1
|
||||||
|
|
||||||
@@ -103,6 +106,8 @@ let g:NERDToggleCheckAllLines = 1
|
|||||||
|
|
||||||
### Default mappings
|
### Default mappings
|
||||||
|
|
||||||
|
> **Note:** You can turn off settings default mappings to provide your own from scratch (look at the [Settings list](#settings) above)
|
||||||
|
|
||||||
The following key mappings are provided by default (there is also a menu provided that contains menu items corresponding to all the below mappings):
|
The following key mappings are provided by default (there is also a menu provided that contains menu items corresponding to all the below mappings):
|
||||||
|
|
||||||
Most of the following mappings are for normal/visual mode only. The **|NERDCommenterInsert|** mapping is for insert mode only.
|
Most of the following mappings are for normal/visual mode only. The **|NERDCommenterInsert|** mapping is for insert mode only.
|
||||||
|
|||||||
Reference in New Issue
Block a user