原文地址: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