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
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
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
Add c/c++ autocomplete plugin