Skip to content
vim-plugin-fit-key-raw-with-space-vim
Vim script
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
plugin
.gitignore
LICENSE
README.md

README.md

vim-plugin-fit-key-raw-with-space-vim

  • vim-plugin-fit-key-raw-with-space-vim (GitHub)

Browse

Introduction

This vim plugin is fit key map for my self with space-vim.

Orignal Map

My Map

Maybe not all. Just introduction. Please read plugin/FitKeyRaw.vim to find all key map.

Just fit on Normal Mode

Quick Switch

Key Map Description
<Backspace> C-w W To Previous Window
<Tab> C-w w To Next Window
<Ctrl+j> :bprevious<CR> To Previous Buffer
<Ctrl+k> :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>>

Delete Buffer

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

Quit

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

Hide

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

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

Only

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.

Buffer List

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

space-vim Use <Space>bb can list and chose

Save

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

sapce-vim Use <S-Tab> bind :bp<CR> .

TabPage

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.

Switch TabPage

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

Tab Move

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

My Environment

  • 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

Related Projects

Howto Install

Install space-vim

Please install space-vim first!

Then config. Just one line.

Plug 'samwhelp/vim-plugin-fit-key-raw-with-space-vim'

Config ~/.spacevim

You can edit 「~/.spacevim」like this.

function! UserInit()
	Plug 'samwhelp/vim-plugin-fit-key-raw-with-space-vim'
endfunction

:PlugInstall

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
You can’t perform that action at this time.