/_vim

my vim configuration

Primary LanguageVim scriptMIT LicenseMIT

My vim configuration.

Author: Feng George Yu

This vimrc example is based on the following example:

Install

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.

Set up for neovim

mkdir -p ~/.config/nvim/
cat << EOF > ~/.config/nvim/init.vim
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
EOF

Install YouCompleteMe

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 

Other Issues

  • spell dictionary is in spell folder. It's ignored in git for public sharing.
  • For golang the vim-go requires newer version of vim. The warning is disabled in vimrc.
  • 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

Screenshot

Screenshot