Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-plugin-switch-key-with-space-vim

  • vim-plugin-switch-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.

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

Config ~/.spacevim

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

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

About

vim-plugin-switch-key-with-space-vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy