add vim keybinding.md

This commit is contained in:
mohamad24xx 2022-09-19 12:31:29 +04:30
parent 73e6d9e4fa
commit 0259c9eb3e
5 changed files with 27 additions and 73 deletions

View file

@ -1,5 +1,5 @@
{
"baseFontSize": 20,
"baseFontSize": 17,
"translucency": false,
"enabledCssSnippets": [
"obsidian"

View file

@ -9,7 +9,7 @@
"state": {
"type": "markdown",
"state": {
"file": "Programing/Html & Css/Recources/Icones.md",
"file": "Programing/Vim/vim keybinding learn list.md",
"mode": "source",
"source": false
}
@ -77,7 +77,7 @@
"state": {
"type": "backlink",
"state": {
"file": "Programing/Html & Css/Recources/Icones.md",
"file": "Programing/Vim/vim keybinding learn list.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -94,7 +94,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "Programing/Html & Css/Recources/Icones.md",
"file": "Programing/Vim/vim keybinding learn list.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -117,7 +117,7 @@
"state": {
"type": "outline",
"state": {
"file": "Programing/Html & Css/Recources/Icones.md"
"file": "Programing/Vim/vim keybinding learn list.md"
}
}
},
@ -139,15 +139,15 @@
},
"active": "e8bd60ed3df5367a",
"lastOpenFiles": [
"Programing/kitty.md",
"Programing/Vim/plugins keybinding.md",
"Programing/Server/gitea setup.md",
"Programing/Vim/vim keybinding learn list.md",
"Programing/Html & Css/Recources/learn and making sites.md",
"Programing/Html & Css/Recources/Icones.md",
"Programing/Html & Css/Recipes/button.md",
"Programing/kitty.md",
"Programing/Html & Css/Recipes/Navbar/navbar - classic.md",
"cheat sheats/Format your notes.md",
"Programing/media files/Screenshot from 2022-08-12 16-20-20 1.png",
"Screenshot from 2022-08-12 16-04-52.png",
"Programing/media files/nc-0.png",
"Screenshot from 2022-08-12 16-02-56.png",
"cheat sheats/Spacemacs keybinding.md"
"Programing/media files/Screenshot from 2022-08-12 16-20-20 1.png"
]
}

View file

@ -1,62 +1 @@
# 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`).

View file

@ -0,0 +1,16 @@
# vim keybinding learn list
w = for next word
b = for last word
o = add line down (inset mode)
shift + o = add line up (inset mode)
shift + p = paste one line up
shift + i = go to beginning of line (inset mode)
shift + a = go to end of line (inset mode)
n (after search) next item | shift + n (after search) last item
" * " for search word mouse is on (next)
" # " for search word mouse is on (next)

View file

@ -1 +0,0 @@
# vim keybinding