Deprecated, please use https://github.com/chenzhiwei/mnde/tree/master/.config/vim
This vim configuration depends on node, so you need to install it first.
VERSION=$(curl -sL https://nodejs.org/dist/index.tab | awk 'NR==2 {print $1}')
curl -LO https://nodejs.org/dist/$VERSION/node-$VERSION-linux-x64.tar.xz
tar xf node-$VERSION-linux-x64.tar.xz
rm -f ~/.vimrc
go install golang.org/x/tools/gopls@latest
git clone https://github.com/chenzhiwei/vim ~/.vim
vim +PlugInstall +qall
- Ctr + o Jump to previous visited locations
- Ctr + i Jump forward to the next locations
- Ctr + g Show the file info that currently edit
CTRL + ]
switch to defination/declaration.CTRL + T
to switch back.:tn
switch to next defination/declaration.:tp
switch to previous defination/declaration.g]
switch between multiple tags.
:windo set wrap
Wrap lines in vimdiff window
Following will generate a myVim.log
with debug level 9.
vim -V9myVim.log filename
apt install build-essential libncurses-dev libncurses5-dev python3-dev --no-install-recommends
git clone https://github.com/vim/vim.git
cd vim
./configure --prefix=/usr/local/vim --enable-python3interp=yes --with-features=huge
make VIMRUNTIMEDIR=/usr/local/vim/share/vim/vim82
make install
/usr/local/vim/bin/vim --version