add 'fprettify' for Fortran

This commit is contained in:
Patrick Seewald 2016-08-30 10:59:32 +02:00
parent 06251ab317
commit f6ce60f798
2 changed files with 13 additions and 0 deletions

View File

@ -202,6 +202,9 @@ Here is a list of formatprograms that are supported by default, and thus will be
* `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.
* `fprettify` for modern __Fortran__.
Download from [official repository](https://github.com/pseewald/fprettify). Install with `./setup.py install` or `./setup.py install --user`.
## Debugging
If you're struggling with getting a formatter to work, it may help to set vim-autoformat in

View File

@ -332,3 +332,13 @@ endif
if !exists('g:formatters_markdown')
let g:formatters_markdown = ['remark_markdown']
endif
" Fortran
if !exists('g:formatdef_fprettify')
let g:formatdef_fprettify = '"fprettify --no-report-errors --indent=".&shiftwidth'
endif
if !exists('g:formatters_fortran')
let g:formatters_fortran = ['fprettify']
endif