From bcfdcd2a5ce45fb81bbf39fdae1a8f1a47d1b4de Mon Sep 17 00:00:00 2001 From: Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> Date: Wed, 10 Mar 2021 11:26:16 +0100 Subject: Add NerdCommenter --- Cheatsheet.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Cheatsheet.md') 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. - ``->`skip_key` - ``->`quit_key` +#### NerdCommenter +- `cc` Comment out current line or lines in visual mode. +- `cn` Same as cc but forces nesting. +- `c` Toggles the comment state of the selected line(s). If the topmost selected line is commented, all selected lines are uncommented and vice versa. +- `cm` Comments the given lines using only one set of multipart delimiters. +- `ci` Toggles the comment state of the selected line(s) individually. +- `cs` Comments out the selected lines with a pretty block formatted layout. +- `cy` Same as cc except that the commented line(s) are yanked first. +- `c$` Comments the current line from the cursor to the end of line. +- `cA` Adds comment delimiters to the end of line and goes into insert mode between them. +- `ca` Switches to the alternative set of delimiters. +- `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. -- cgit v1.2.3