erlang vim

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(centos7上可以,centos6上不行?)

解决 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"

 

添加插件

cd ~/.vim/bundle

git clone hgit clone https://github.com/kien/ctrlp.vim.git

git clone hgit clone https://github.com/preservim/nerdtree.git

git clone hgit clone https://github.com/jistr/vim-nerdtree-tabs.git

 

posted @ 2020-10-30 11:27  gzdgz  阅读(114)  评论(0编辑  收藏  举报