1. Install neovim
brew install neovim
pip install pynvim
npm install -g neovim# Add these lines to your ~/.bashrc or ~/.zshrcalias vi="nvim"alias vim="nvim"ln -s ~/.vimrc ~/.vim/init.vimA few of my preferred settings
" Remap leader keylet mapleader ="\<Space>"" jj and jk to escapeinoremapjj<esc>inoremapjk<esc>" Ctrl+C to yank to clipboardvnoremap<C-c>"*y" Always use spacessettabstop=2shiftwidth=2expandtab" Color Schemesyntaxonsettermguicolors" Always use line numberssetnumber" Spellchecksetspellspelllang=en_us5. Install Plugins via vim-plug
First install vim-plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'Then to start off, add the following to the top of your ~/.vimrc
callplug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-eunuch'
Plug 'scrooloose/syntastic'
Plug 'jiangmiao/auto-pairs'
Plug 'vim-airline/vim-airline'
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-repeat'" File Finder" PlugInstall and PlugUpdate will clone fzf in ~/.fzf and run the install script
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | Plug 'junegunn/fzf.vim'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': 'NERDTreeToggle' }
"" Initialize plugin systemcallplug#end()and run :PlugInstall