Merge branch 'sbdchd-remark'

This commit is contained in:
Chiel ten Brinke 2016-03-21 15:56:47 +01:00
commit 5b22a44982
2 changed files with 12 additions and 0 deletions

View File

@ -176,6 +176,9 @@ Here is a list of formatprograms that are supported by default, and thus will be
* `stylish-haskell` for __Haskell__
It can be installed using [`cabal`](https://www.haskell.org/cabal/) build tool. Installation instructions are available at https://github.com/jaspervdj/stylish-haskell#installation
* `remark` for __Markdown__.
A Javascript based markdown processor that can be installed with `npm install -g remark`. More info is available at https://github.com/wooorm/remark.
## How can I change the behaviour of formatters, or add one myself?
If you need a formatter that is not among the defaults, or if you are not satisfied with the default formatting behaviour that is provided by vim-autoformat, you can define it yourself.

View File

@ -304,3 +304,12 @@ endif
if !exists('g:formatters_haskell')
let g:formatters_haskell = ['stylish_haskell']
endif
" Markdown
if !exists('g:formatdef_remark_markdown')
let g:formatdef_remark_markdown = '"remark --silent --no-color"'
endif
if !exists('g:formatters_markdown')
let g:formatters_markdown = ['remark_markdown']
endif