brew install neovim
add-apt-repository ppa:neovim-ppa/stable
apt update && apt -y install neovim
git clone --recurse-submodules https://github.com/chenzhiwei/vim ~/.vim
~/.vim/setup.sh
source ~/.vim/.bashrc
apt install -y python3-pip python3-wheel python3-setuptools --no-install-recommends
pip3 install --upgrade pynvim
- 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 + Tto switch back.:tnswitch to next defination/declaration.:tpswitch to previous defination/declaration.g]switch between multiple tags.
:PlugInstall
:GoInstallBinaries
:windo set wrapWrap lines in vimdiff window
Following will generate a myVim.log with debug level 9.
vim -V9myVim.log filename
在 bash 里用 vim 打开一些文件时这些文件名不能被自动补全,比如.a和.o文件。
$ ls
test.a test.o test.so test.txt
$ vim t[tab][tab]
原因是/usr/share/bash-completion/bash_completion里的这一行:
_install_xspec '*.@(o|so|so.!(conf|*/*)|a|[rs]pm|gif|jp?(e)g|mp3|mp?(e)g|avi|asf|ogg|class)' vi vim gvim rvim view rview rgvim rgview gview emacs xemacs sxemacs kate kwrite