From 1b8f589d0648c6fb19fe827b56d5cad3f71544c6 Mon Sep 17 00:00:00 2001 From: "Daniel Campoverde [alx741]" Date: Tue, 2 Aug 2016 23:31:30 -0500 Subject: Add Vim usage method in README --- README.markdown | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index 209f2d7..3cee691 100644 --- a/README.markdown +++ b/README.markdown @@ -102,11 +102,18 @@ VIM integration --------------- Since it works as a filter it is pretty easy to integrate this with VIM. -Just call + +You can call :%!stylish-haskell -or add a keybinding for it. +and add a keybinding for it. + +Or you can define `formatprg` + + :set formatprg=stylish-haskell + +and then use `gq`. There is also the [vim-stylish-haskell] plugin, which runs stylish-haskell automatically when you save a Haskell file. -- cgit v1.2.3