update the NERDComment() doc

This commit is contained in:
Martin Grenfell
2012-01-02 21:08:24 +00:00
parent 006a151a43
commit 8f2af9a6d7

View File

@@ -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
which delegates the commenting work to other functions. This function is
public and has the prototype: >
function! NERDComment(isVisual, type)
function! NERDComment(mode, type)
<
The arguments to this function are simple:
- isVisual: if you wish to do any kind of visual comment then set this to
1 and the function will use the '< and '> marks to find the comment
boundries. If set to 0 then the function will operate on the current
line.
- mode: a character indicating the mode in which the comment is requested:
'n' for Normal mode, 'x' for Visual mode
- type: is used to specify what type of commenting operation is to be
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"
For example, if you typed >