| 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 |
About orginal , and t, please read vim f, F, t, T, ;, ,.
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 |
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. |
Compare with Quick Switch <Ctrl+h> and <Ctrl+l> .
| 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 |