- vim-plugin-fit-key-with-space-vim (GitHub)
This vim plugin is fit key map for my self with space-vim.
- :help normal-index
- space-vim/layers/+distributions/better-defaults/README.md
- space-vim/core/autoload/spacevim/map/leader.vim
- space-vim/core/autoload/spacevim/map/localleader.vim
- space-vim/layers/+distributions/better-defaults/keybindings.vim
- vim-better-default/plugin/default.vim
- ...
Maybe not all. Just introduction. Please read plugin/FitKey.vim to find all key map.
Just fit on Normal Mode
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 | Notice |
---|---|---|---|
,q |
:bdelete<CR> | delete current buffer | single |
,x |
:%bdelete<CR> | delete all buffer | all |
,z |
:bdelete!<CR> | force delete current buffer | single |
,c |
:%bdelete!<CR> | force delete all buffer | all |
Key | Map | Description | Notice |
---|---|---|---|
\q |
:q<CR> | quit | single |
\x |
:qa<CR> | quit all | all |
\z |
:q!<CR> | force quit | single |
\c |
:qa!<CR> | force quit all | all |
Please read :help 'confirm'.
Key | Map | Description | Notice |
---|---|---|---|
,h |
:hide<CR> | Hide current buffer. | single |
Key | Map | Description |
---|---|---|
,wa |
:only<CR> | to close other window, then all buffer will hide, if set hidden. |
<Space><Space>wa |
:tabonly<CR> | wa to close other tabpage, then all buffer will hide, if set hidden. |
Compare with
,x
,,c
,\x
,\c
,,h
。
Key | Map | Description |
---|---|---|
,b |
:ls<CR> | Show all buffers. |
space-vim Use
<Space>bb
can list and chose
Key | Map | Description | Notice |
---|---|---|---|
<S-Tab> |
:w<CR> | Write the whole buffer to the current file. | Work on Normal Mode and Insert Mode |
space-vim Use
<Space>fs
bind :update<CR> .
Key | Map | Description |
---|---|---|
<Space><Space>s |
:tab split<CR> | Opens current buffer in new tab page |
<Space><Space>t |
:tabnew<CR> | New TabPage |
<Space><Space>f |
:tabnew<CR>:edit<Space> | New tabpage and wait for user input file path |
<Space><Space>e |
:tabedit<Space> | Edit file on new tabpage) |
I use t for tabpage. space-vim use
<Space><Space>
for tabpage. It's ok.
Key | Map | Description |
---|---|---|
<Space><Space>p |
:tabprevious<CR> | To Previous TabPage |
<Space><Space>n |
:tabnext<CR> | To Next TabPage |
Key | Map | Description |
---|---|---|
<Space><Space>h |
:tabprevious<CR> | To Previous TabPage |
<Space><Space>l |
:tabnext<CR> | To Next TabPage |
<Space><Space>j |
:tabfirst<CR> | To First TabPage |
<Space><Space>k |
:tablast<CR> | To Last TabPage |
Compare with Quick Switch
<Ctrl+h>
and<Ctrl+l>
.
Key | Map | Description |
---|---|---|
<Space><Space>u |
:-tabmove<CR> | Tab Move to Left |
<Space><Space>i |
:+tabmove<CR> | Tab Move to Right |
Key | Map | Description |
---|---|---|
<Space><Space>mh |
:-tabmove<CR> | Tab Move to Left |
<Space><Space>ml |
:+tabmove<CR> | Tab Move to Right |
<Space><Space>mj |
:0tabmove<CR> | Tab Move to First |
<Space><Space>mk |
:$tabmove<CR> | Tab Move to Last |
- ubuntu 18.04
- lxqt 25
- xfwm4 4.12.4
- gnome-terminal 3.28.2
- qterminal 0.8.0
- vim 8.0
- nvim 0.2.2
Please install space-vim first!
Then config. Just one line.
Plug 'samwhelp/vim-plugin-fit-key-with-space-vim'
You can edit 「~/.spacevim」like this.
function! UserInit()
Plug 'samwhelp/vim-plugin-fit-key-with-space-vim'
endfunction
you can run vim or nvim, then run :PlugInstall.
or just run on shell.
$ vim -nNRe -c 'try | :PlugInstall | finally | :qa! | entry'
or not quit, run
$ vim -nNRe -c ':PlugInstall'
It's done.
or can run
$ vim -nNRe +PlugInstall +qa!
or can run
$ vim -nNRe +PlugInstall