diff options
Diffstat (limited to 'Cheatsheet.md')
-rw-r--r-- | Cheatsheet.md | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Cheatsheet.md b/Cheatsheet.md index 7412f94..ae2cec1 100644 --- a/Cheatsheet.md +++ b/Cheatsheet.md @@ -77,6 +77,20 @@ You can move a line of text using `ALT+[jk]` or `CMD+[jk]` on mac. - `<C-x>`->`skip_key` - `<ESC>`->`quit_key` +#### NerdCommenter +- `<leader>cc` Comment out current line or lines in visual mode. +- `<leader>cn` Same as cc but forces nesting. +- `<leader>c<space>` Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa. +- `<leader>cm` Comments the given lines using only one set of multipart delimiters. +- `<leader>ci` Toggles the comment state of the selected line(s) individually. +- `<leader>cs` Comments out the selected lines with a pretty block formatted layout. +- `<leader>cy` Same as cc except that the commented line(s) are yanked first. +- `<leader>c$` Comments the current line from the cursor to the end of line. +- `<leader>cA` Adds comment delimiters to the end of line and goes into insert mode between them. +- `<leader>ca` Switches to the alternative set of delimiters. +- `<leader>cu` Uncomments the selected line(s). + + ## Tmux @@ -163,4 +177,4 @@ You can move a line of text using `ALT+[jk]` or `CMD+[jk]` on mac. #### Help - `tmux info` Show every session, window, pane, etc... -- `prefix` `?` Show shortcuts.
\ No newline at end of file +- `prefix` `?` Show shortcuts. |