mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-11 11:13:47 -05:00
update the NERDComment() doc
This commit is contained in:
@@ -372,16 +372,14 @@ Here the multipart delimiters are /* and */ and the marker is *.
|
|||||||
All of the NERD commenter mappings and menu items invoke a single function
|
All of the NERD commenter mappings and menu items invoke a single function
|
||||||
which delegates the commenting work to other functions. This function is
|
which delegates the commenting work to other functions. This function is
|
||||||
public and has the prototype: >
|
public and has the prototype: >
|
||||||
function! NERDComment(isVisual, type)
|
function! NERDComment(mode, type)
|
||||||
<
|
<
|
||||||
The arguments to this function are simple:
|
The arguments to this function are simple:
|
||||||
- isVisual: if you wish to do any kind of visual comment then set this to
|
- mode: a character indicating the mode in which the comment is requested:
|
||||||
1 and the function will use the '< and '> marks to find the comment
|
'n' for Normal mode, 'x' for Visual mode
|
||||||
boundries. If set to 0 then the function will operate on the current
|
|
||||||
line.
|
|
||||||
- type: is used to specify what type of commenting operation is to be
|
- type: is used to specify what type of commenting operation is to be
|
||||||
performed, and it can be one of the following: "sexy", "invert",
|
performed, and it can be one of the following: "sexy", "invert",
|
||||||
"minimal", "toggle", "alignLeft", "alignBoth", "norm", "nested",
|
"minimal", "toggle", "alignLeft", "alignBoth", "comment", "nested",
|
||||||
"toEOL", "append", "insert", "uncomment", "yank"
|
"toEOL", "append", "insert", "uncomment", "yank"
|
||||||
|
|
||||||
For example, if you typed >
|
For example, if you typed >
|
||||||
|
|||||||
Reference in New Issue
Block a user