add ~/.vimrc
brew install neovim
~/.config/nvim/init.vim
following FAQcd ~/.vim/pack/plugins/start
git clone --depth=20 https://github.com/fatih/vim-go.git
git clone --depth=20 https://github.com/fatih/molokai.git
git clone --depth=20 https://github.com/AndrewRadev/splitjoin.vim.git
git clone --depth=20 https://github.com/ctrlpvim/ctrlp.vim
git clone --depth=20 https://github.com/mdempsky/gocode
git clone --depth=20 https://github.com/sebdah/vim-delve
git clone --depth=20 https://github.com/scrooloose/nerdtree.git
git clone --depth=20 https://github.com/MarcWeber/vim-addon-mw-utils.git
git clone --depth=20 https://github.com/honza/vim-snippets.git
git clone --depth=10 https://github.com/posva/vim-vue.git
using :GoInstallBinaries
to install golang plugins
cd ~/.vim/pack/plugins/start
# download plugin vim-jsbeautify/plugin/beautifier.vim
git clone --depth=10 https://github.com/maksimr/vim-jsbeautify.git
# download js-beautify
# see: https://github.com/beautify-web/js-beautify/releases
jsbeautify_version=1.9.0-beta5
wget https://github.com/beautify-web/js-beautify/archive/v${jsbeautify_version}.zip
unzip v${jsbeautify_version}.zip
mkidr -p vim-jsbeautify/plugin/lib/js/lib
cp js-beautify-${jsbeautify_version}/js/lib/*.js vim-jsbeautify/plugin/lib/js/lib
# edit .editorconfig
# change all indent-size to 2
# note: you can add .editorconfig in your project
add following into .zshrc:
alias vi="nvim"
alias vim="nvim"
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
mkdir -p ~/vim/theme
git clone --depth=20 https://github.com/dracula/iterm.git ~/.vim/theme/iterm
# iTerm2 > Preferences > Profiles > Colors Tab
# Open the Color Presets... drop-down in the bottom right corner
# Select Import... from the list
# Select the Dracula.itermcolors file
# Select the Dracula from Color Presets..