Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
linux:vim_cheatsheet [2022/02/11 11:36] – external edit 127.0.0.1 | linux:vim_cheatsheet [2023/01/31 08:33] (current) – removed dodger |
---|
====== vim cheatsheet ====== | |
| |
| |
===== nerdcommenter ===== | |
| |
Most of the following mappings are for normal/visual mode only. The</code> |NERDCommenterInsert| mapping is for insert mode only. | |
| |
| <code>[count]<leader>cc</code> |NERDCommenterComment| Comment out the current line or text selected in visual mode. | | |
| <code>[count]<leader>cn</code> |NERDCommenterNested| Same as cc but forces nesting. | | |
| <code>[count]<leader>c<space></code> |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.| | |
| <code>[count]<leader>cm</code> |NERDCommenterMinimal| Comments the given lines using only one set of multipart delimiters. | | |
| <code>[count]<leader>ci</code> |NERDCommenterInvert| Toggles the comment state of the selected line(s) individually.| | |
| <code>[count]<leader>cs</code> |NERDCommenterSexy| Comments out the selected lines with a pretty block formatted layout. | | |
| <code>[count]<leader>cy</code> |NERDCommenterYank| Same as cc except that the commented line(s) are yanked first. | | |
| <code><leader>c$</code> |NERDCommenterToEOL| Comments the current line from the cursor to the end of line. | | |
| <code><leader>cA</code> |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. | | |
| <code><leader>ca</code> |NERDCommenterAltDelims| Switches to the alternative set of delimiters. | | |
| <code>[count]<leader>cl</code> |NERDCommenterAlignLeft | | | |
| <code>[count]<leader>cb</code> |NERDCommenterAlignBoth | Same as 'NERDCommenterComment' except that the delimiters are aligned down the left side (<leader>cl) or both sides (<leader>cb). | | |
| <code>[count]<leader>cu</code> |NERDCommenterUncomment| Uncomments the selected line(s). | | |
| |
| |
===== fugitive.vim ===== | |
| |
| |
| |