aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stendahl <14180120+JakobST1n@users.noreply.github.com>2021-03-10 11:26:16 +0100
committerGitHub <noreply@github.com>2021-03-10 11:26:16 +0100
commitbcfdcd2a5ce45fb81bbf39fdae1a8f1a47d1b4de (patch)
tree157968057c917387d854c485a798681595d528ed
parentf8c26c933396271813b669bd74e5eff5e67426ab (diff)
downloaddotfiles-bcfdcd2a5ce45fb81bbf39fdae1a8f1a47d1b4de.tar.gz
dotfiles-bcfdcd2a5ce45fb81bbf39fdae1a8f1a47d1b4de.zip
Add NerdCommenter
-rw-r--r--Cheatsheet.md16
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.