原文地址:http://www.javashuo.com/article/p-cvbuuiml-cx.htmlhtml
第一步當初是安裝vim,推薦使用比較新的8.1+版本。git
brew install vim
寫haskell須要安裝相應的插件,vim沒有原生的插件管理系統,因此得先搞定這個。github
這裏推薦使用vim-plug來安裝。按照官方https://github.com/junegunn/vim-plug給出的命令便可安裝成功。vim
打開~/.vimrc,若是你按照vim-plug官方推薦的步驟安裝好vim-plug後,.vimrc應該大約是這個樣子。工具
call plug#begin('~/.vim/plugged') call plug#end()
在中間添加一行,添加stylish-haskell https://github.com/jaspervdj/stylish-haskell。spa
call plug#begin('~/.vim/plugged') Plug 'jaspervdj/stylish-haskell' call plug#end()
而後在vim中執行:PlugInstall
進行安裝。插件
固然此時這個插件還不能用,由於它依賴命令行工具,具體內容能夠去看官方文檔。命令行
好了,到這裏你應該掌握安裝vim插件的基本方法了。code