Skip to content

z956/vim_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

vim config

Shortcut

Normal mode

bd for deleting current buffer

C-j for moving to the next buffer

C-k for moving to the previous buffer

<SPC> <num> for switching to the buffer with the specified number

<F10> for opening/closing nerdtree

Note

To prevent open vim/nvim recursively, I use env variable $INSIDE_VIM to indicate we are in vim

Add the following line in .bashrc or .zshrc

if [ "$INSIDE_VIM" ]; then
    alias vi='echo -e "\e[91mERROR\e[39m: you are in vim and you should not use vim recursively" && test'
    alias vim='vi'
    alias nvim='vi'
else
    alias vi="nvim"
    alias vim="nvim"
fi

TODO 1

The color of tabline is weird when loading vim-wintabs with vim-airline

I reset some variables after loading plugins

The color set is only fit for wombat

TODO 2

Add c/c++ autocomplete plugin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published