Skip to content

samwhelp/vim-plugin-fit-key-with-space-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  • vim-plugin-fit-key-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/FitKey.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+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>>

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

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.

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

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-with-space-vim'

Config ~/.spacevim

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

function! UserInit()
	Plug 'samwhelp/vim-plugin-fit-key-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

Releases

No releases published

Packages

No packages published