My vim configuration.
Author: Feng George Yu
This vimrc example is based on the following example:
First, download the git repo and link the vimrc
to your home folder .vimrc
git clone --recursive https://github.com/fenggeorgeyu/_vim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
Second, start vim, type :
and type PlugInstall
to install plugins. Restart vim and start using it.
mkdir -p ~/.config/nvim/
cat << EOF > ~/.config/nvim/init.vim
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
EOF
Support C-family languages, Go, and Java:
brew install cmake go
cd ~/.vim/plugged/youcompleteme
git submodule update --init --recursive
python3 ./install.py --clang-completer --go-completer --java-completer
- spell dictionary is in
spell
folder. It's ignored in git for public sharing. - For
golang
thevim-go
requires newer version of vim. The warning is disabled invimrc
. - Black screen on Full Screen? link
Execute the following command in Terminal.app if you're using Use Core Text renderer and Prefer native full-screen support in Preferences > Advanced.
defaults write org.vim.MacVim MMUseCGLayerAlways -bool YES