Skip to content

Instantly share code, notes, and snippets.

@tngan
Last active December 5, 2016 02:18
Show Gist options
  • Save tngan/ad36ff439a97e9e168de6742a460f109 to your computer and use it in GitHub Desktop.
Save tngan/ad36ff439a97e9e168de6742a460f109 to your computer and use it in GitHub Desktop.
.setup vim

https://github.com/junegunn/vim-plug

# install neovim in mac osx
brew install neovim/neovim/neovim
# install python interface
pip install neovim
pip3 install neovim # for vim-plug
# install vim-plug
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# mirror the config (https://neovim.io/doc/user/nvim.html#nvim-from-vim)
mkdir ~/.config
    ln -s ~/.vim ~/.config/nvim
    ln -s ~/.vimrc ~/.config/nvim/init.vim
# set alias in .zshrc or .bashrc
alias vi=nvim
# install ctrl-p 
# follow this guide http://ctrlpvim.github.io/ctrlp.vim/#installation

# setup .agignore and put the following in .vimrc
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment