- tool-svim-doc
- :help keycodes
- :help normal-index
- :help insert-index
- Leader Key
- Quick Switch
- Window Resize
- Window Create
- Delete Buffer
- Quit
- Hide
- Close
- Only
- Buffers
- Registers
- Marks
- Save
- TabPage
- Switch TabPage
- Tab Move
- Line Move
Key | Map | Notice |
---|---|---|
, |
for main use | vim , orginal had function |
\ |
for sub use | vim leader default is backslash |
t |
for TabPage | vim t orginal had function |
Please read :help normal-index
Please read :help ,
Please read :help t
I use (,) and (t) for my leader key.
Key | Map | Description |
---|---|---|
<Backspace> |
C-w W | To Previous Window |
<Tab> |
C-w w | To Next Window |
<Ctrl+k> |
:bprevious<CR> | To Previous Buffer |
<Ctrl+j> |
:bnext<CR> | To Next Buffer |
<Ctrl+h> |
:tabprevious<CR> | To Previous TabPage |
<Ctrl+l> |
:tabnext<CR> | To Next TabPage |
Key | Map |
---|---|
<S-Down> |
<C-w>- |
<S-Up> |
<C-w>+ |
<S-Left> |
<C-w>< |
<S-Right> |
<C-w>> |
Key | Map | Description |
---|---|---|
,wn |
:new<CR> | Create a new window horizontally. |
,wv |
:vnew<CR> | Create a new window vertically. |
Please read :help window.
Please compare :help :split.
Please compare :help :vsplit.
Key | Map | Description | Notice |
---|---|---|---|
,q |
:bdelete<CR> | delete current buffer | single |
,z |
:bdelete!<CR> | force delete current buffer | single |
,x |
:%bdelete<CR> | delete all buffer | all |
,c |
:%bdelete!<CR> | force delete all buffer | all |
Key | Map | Description | Notice |
---|---|---|---|
\q |
:q<CR> | quit | single |
\z |
:q!<CR> | force quit | single |
\x |
:qa<CR> | quit all | all |
\c |
:qa!<CR> | force quit all | all |
Please read :help 'confirm'.
Key | Map | Description | Notice |
---|---|---|---|
,h |
:hide<CR> | hide current buffer | single |
Compare with
,x
,,c
,\x
,\c
,,h
。
Key | Map | Description |
---|---|---|
,wc |
:close<CR> | Close the current window |
Key | Map | Description |
---|---|---|
,wa |
:only<CR> | to close other window, then all buffer will hide, if set hidden. |
twa |
:tabonly<CR> | wa to close other tabpage, then all buffer will hide, if set hidden. |
Key | Map | Description |
---|---|---|
,b |
:ls<CR> | Show all buffers. |
Key | Map | Description |
---|---|---|
,r |
:registers<CR> | Display all Registers. |
Key | Map | Description |
---|---|---|
,m |
:marks<CR> | List all the current marks. |
Key | Map | Description | Notice |
---|---|---|---|
<S-Tab> |
:w<CR> | Write the whole buffer to the current file. | Work on Normal Mode and Insert Mode |
Key | Map | Description |
---|---|---|
ts |
:tab split<CR> | Opens current buffer in new tab page |
tg |
:tabnew<CR> | New TabPage |
tf |
:tabnew<CR>:edit<Space> | New tabpage and wait for user input file path |
te |
:tabedit<Space> | Edit file on new tabpage. |
Key | Map | Description |
---|---|---|
tp |
:tabprevious<CR> | To Previous TabPage |
tn |
:tabnext<CR> | To Next TabPage |
Key | Map | Description |
---|---|---|
th |
:tabprevious<CR> | To Previous TabPage |
tl |
:tabnext<CR> | To Next TabPage |
tj |
:tabfirst<CR> | To First TabPage |
tk |
:tablast<CR> | To Last TabPage |
Compare with Quick Switch
<Ctrl+h>
and<Ctrl+l>
.
Key | Map | Description |
---|---|---|
tu |
:-tabmove<CR> | Tab Move to Left |
ti |
:+tabmove<CR> | Tab Move to Right |
Key | Map | Description |
---|---|---|
tmh |
:-tabmove<CR> | Tab Move to Left |
tml |
:+tabmove<CR> | Tab Move to Right |
tmj |
:0tabmove<CR> | Tab Move to First |
tmk |
:$tabmove<CR> | Tab Move to Last |
Key | Map | Description | Notice |
---|---|---|---|
<S-PageUp> |
:m-2<CR> | Move line up. | Work on Normal Mode and Insert Mode |
<S-PageDown> |
:m+<CR> | Move line Down. | Work on Normal Mode and Insert Mode |