Skip to content

samwhelp/tool-svim-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tool-svim-core

Vim Doc

Vimrc

Key Binding

Leader Key

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.

Quick Switch

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

Window Resize

Key Map
<S-Down> <C-w>-
<S-Up> <C-w>+
<S-Left> <C-w><
<S-Right> <C-w>>

Window Create

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.

Delete Buffer

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

Quit

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'.

Hide

Key Map Description Notice
,h :hide<CR> hide current buffer single

Compare with ,x, ,c, \x, \c, ,h

Close

Key Map Description
,wc :close<CR> Close the current window

Only

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.

Buffers

Key Map Description
,b :ls<CR> Show all buffers.

Registers

Key Map Description
,r :registers<CR> Display all Registers.

Marks

Key Map Description
,m :marks<CR> List all the current marks.

Save

Key Map Description Notice
<S-Tab> :w<CR> Write the whole buffer to the current file. Work on Normal Mode and Insert Mode

TabPage

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.

Switch 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> .

Tab Move

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

Line Move

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

Releases

No releases published

Packages

No packages published