Configure vim to write Haskell

Original Address: https://gcnyin.github.io/2019/09/08/vim-and-haskell.html  and  https://www.cnblogs.com/estrigriac/p/11495782.html

The first step is to install the original vim, we recommend the use of newer version 8.1+.

brew install vim

Write haskell need to install the plug-in, vim no native plug-in management system, so you have to get this.

It is recommended to use vim-plug installation. According to official https://github.com/junegunn/vim-plug it is given command to install success.

Open ~ / .vimrc, if you installed vim-plug in accordance with vim-plug official recommended steps, .vimrc should look something like this.

call plug#begin('~/.vim/plugged')
call plug#end() 

Add a row in the middle, adding stylish-haskell https://github.com/jaspervdj/stylish-haskell.

call plug#begin('~/.vim/plugged')
Plug 'jaspervdj/stylish-haskell' call plug#end() 

Then in vim performing :PlugInstallinstallation.

Of course, this plugin is not able at this time, because it relies on command-line tool, you can see the details of the official documentation.

Well, here you should master the basic method to install the vim plugin.

Guess you like

Origin www.cnblogs.com/estrigriac/p/11495782.html