ob-vaults/Phoenix/Programing/Vim/plugins keybinding.md

63 lines
2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# plugins keybinding
### NERDtree
```vim
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
```
### [Nerdcommenter](https://github.com/preservim/nerdcommenter)
#### importent ones
- `[count]<leader>cc` **|NERDCommenterComment|**
Comment out the current line or text selected in visual mode.
- `[count]<leader>cu` **|NERDCommenterUncomment|**
Uncomments the selected line(s).
- `[count]<leader>c<space>` **|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.
#### unimportant
- `[count]<leader>cn` **|NERDCommenterNested|**
Same as cc but forces nesting.
- `[count]<leader>cm` **|NERDCommenterMinimal|**
Comments the given lines using only one set of multipart delimiters.
- `[count]<leader>ci` **|NERDCommenterInvert|**
Toggles the comment state of the selected line(s) individually.
- `[count]<leader>cs` **|NERDCommenterSexy|**
Comments out the selected lines with a pretty block formatted layout.
- `[count]<leader>cy` **|NERDCommenterYank|**
Same as cc except that the commented line(s) are yanked first.
- `<leader>c$` **|NERDCommenterToEOL|**
Comments the current line from the cursor to the end of line.
- `<leader>cA` **|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.
- `<leader>ca` **|NERDCommenterAltDelims|**
Switches to the alternative set of delimiters.
- `[count]<leader>cl` **|NERDCommenterAlignLeft** 
- `[count]<leader>cb` **|NERDCommenterAlignBoth**
Same as **|NERDCommenterComment|** except that the delimiters are aligned down the left side (`<leader>cl`) or both sides (`<leader>cb`).