User Tools

Site Tools


vim cheatsheet


Most of the following mappings are for normal/visual mode only. The</code> |NERDCommenterInsert| mapping is for insert mode only.

NERDCommenterComment Comment out the current line or text selected in visual mode.
NERDCommenterNested Same as cc but forces nesting.
NERDCommenterToggle Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa.
NERDCommenterMinimal Comments the given lines using only one set of multipart delimiters.
NERDCommenterInvert Toggles the comment state of the selected line(s) individually.
NERDCommenterSexy Comments out the selected lines with a pretty block formatted layout.
NERDCommenterYank Same as cc except that the commented line(s) are yanked first.
NERDCommenterToEOL Comments the current line from the cursor to the end of line.
NERDCommenterAppend Adds comment delimiters to the end of line and goes into insert mode between them.
?? NERDCommenterInsert Adds comment delimiters at the current cursor position and inserts between. Disabled by default.
NERDCommenterAltDelims Switches to the alternative set of delimiters.
NERDCommenterAlignBoth Same as 'NERDCommenterComment' except that the delimiters are aligned down the left side (<leader>cl) or both sides (<leader>cb).
NERDCommenterUncomment Uncomments the selected line(s).


linux/vim_cheatsheet.txt · Last modified: 2022/02/11 11:36 by