aboutsummaryrefslogtreecommitdiff
path: root/Cheatsheet.md
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-09-04 12:04:53 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-09-04 12:04:53 +0200
commit65b7f91e51d90e93c3d7c6704c0a8265467a8ea7 (patch)
tree88301071c7f1840b502f33cbd3b0f7c5e81b0c66 /Cheatsheet.md
parenta77563ee1044ffa03f7c49e457a5f7c9f943188f (diff)
parente6df7072ab32493a561fc678eacc119b57981827 (diff)
downloaddotfiles-65b7f91e51d90e93c3d7c6704c0a8265467a8ea7.tar.gz
dotfiles-65b7f91e51d90e93c3d7c6704c0a8265467a8ea7.zip
Merge branch 'master' of https://github.com/JakobS1n/dotfiles
Diffstat (limited to 'Cheatsheet.md')
-rw-r--r--Cheatsheet.md16
1 files changed, 15 insertions, 1 deletions
diff --git a/Cheatsheet.md b/Cheatsheet.md
index e91d69c..e19765f 100644
--- a/Cheatsheet.md
+++ b/Cheatsheet.md
@@ -90,6 +90,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
@@ -176,4 +190,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.