|
|
|
@ -1,14 +1,5 @@
|
|
|
|
# VIM Cheat Sheet
|
|
|
|
# VIM Cheat Sheet
|
|
|
|
|
|
|
|
|
|
|
|
## Tabs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- `gt` go to next tab
|
|
|
|
|
|
|
|
- `gT` go to next tab
|
|
|
|
|
|
|
|
- `[num]gt` go to tab [num]
|
|
|
|
|
|
|
|
- `:tabnew` open new tab
|
|
|
|
|
|
|
|
- `:tabc` close tab
|
|
|
|
|
|
|
|
- `:tabe` edit file in new tab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Split
|
|
|
|
## Split
|
|
|
|
|
|
|
|
|
|
|
|
- `<ctrl-w>s` or `:sp` split with line running horizontally
|
|
|
|
- `<ctrl-w>s` or `:sp` split with line running horizontally
|
|
|
|
@ -23,6 +14,15 @@
|
|
|
|
- `:bn` next buffer
|
|
|
|
- `:bn` next buffer
|
|
|
|
- `:[num]bd` unload buffer [num]
|
|
|
|
- `:[num]bd` unload buffer [num]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Tabs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- `gt` go to next tab
|
|
|
|
|
|
|
|
- `gT` go to next tab
|
|
|
|
|
|
|
|
- `[num]gt` go to tab [num]
|
|
|
|
|
|
|
|
- `:tabnew` open new tab
|
|
|
|
|
|
|
|
- `:tabc` close tab
|
|
|
|
|
|
|
|
- `:tabe` edit file in new tab
|
|
|
|
|
|
|
|
|
|
|
|
## Auto Complete
|
|
|
|
## Auto Complete
|
|
|
|
|
|
|
|
|
|
|
|
- `<ctrl-x><ctrl-o>` omni completion
|
|
|
|
- `<ctrl-x><ctrl-o>` omni completion
|
|
|
|
|