mkdir -p ~/.vim/bundle ~/.vim/autoload
cd ~/.vim/autoload
下载 vim-pathogen
git clone https://github.com/tpope/vim-pathogen.git
下载 pathogen.vim
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
打开网站https://www.ipaddress.com/
查询raw.githubusercontent.com 对应的ip
199.232.68.133
vim /etc/hosts
添加 199.232.68.133 raw.githubusercontent.com
修改~/.vimrc
call pathogen#infect()
call pathogen#helptags()
syntax on
filetype plugin indent on
cd ~/.vim/bundle
git clone https://github.com/jimenezrick/vimerl.git
下载man
wget https://erlang.org/download/otp_doc_man_23.1.tar.gz
tar -xzf otp_doc_man_23.1.tar.gz
mv man /usr/local/erlang
erl -man app
修改~/.vimrc
filetype plugin indent on
let g:erlangManPath="/usr/local/erlang/man"