guychienll / .vim

vim setup for revtel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.Vim

.vim is committed to creating a comfortable vim development environment for Python and React developers currently. If you are the developer mentioned above, welcome to submit a pull request to contribute, let us embrace vim together.

Outline

Getting Started

  # zsh
  $ git clone https://github.com/revtel/.vim.git
  $ echo "so $HOME/.vim/.vimrc" > $HOME/.vimrc
  $ vim
  # vim editor
  :PlugInstall

Key Binding

  • normal mode

    Code Action
    Key Action
    RR trigger code action
    RN trigger rename
    -- comment the current line the cursor on
    FF format code (include javascript(eslint,prettier) , python(autopep8))
    Navigation
    Key Action
    gd go to definition
    gr go find references
    gc comment selection
    sn go to next error or warning
    sp go to previous error or warning
    g. go to next cursor position
    g, go to previous cursor position
    F4 toggle RltvNmbr
    ctrl + l go next buffer
    ctrl + k go previous buffer
    ctrl + p toggle ctrlP ( like vscode go anywhere )
    Others
    Key Action
    ctrl + o toggle nerdtree (like vscode explore)
    space enter easymotion mode
  • visual mode

    Code Action
    Key Action
    -- comment multiple lines what you selected
  • insert mode

    Code Action
    Key Action
    ctrl + e trigger emmet expand

Directory Structure

.vim
├── CHANGELOG.md
├── README.md
├── autoload
│   ├── RltvNmbr.vim
│   └── plug.vim
└── plugin
    ├── RltvNmbr.vim
    ├── RltvNmbrPlugin.vim
    ├── airline.vim
    ├── ale.vim
    ├── bufferline.vim
    ├── ctrlp.vim
    ├── easymotion.vim
    ├── gitgutter.vim
    ├── nerdcommenter.vim
    └── nerdtree.vim

About

vim setup for revtel

License:MIT License


Languages

Language:Vim Script 100.0%