Giter Site home page Giter Site logo

samwhelp / vim-plugin-switch-key-raw-with-space-vim Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 10 KB

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

Home Page: https://github.com/liuchengxu/space-vim/issues/394

License: MIT License

Vim Script 100.00%
vim vim-plugin space-vim

vim-plugin-switch-key-raw-with-space-vim's Introduction

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

  • vim-plugin-switch-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+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-raw-with-space-vim'

Config ~/.spacevim

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

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

vim-plugin-switch-key-raw-with-space-vim's People

Contributors

samwhelp avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.