From 3f06fb4b6287ff489f4d5c92184f058edeb183d8 Mon Sep 17 00:00:00 2001 From: Nathan Bouscal Date: Wed, 19 Mar 2014 09:38:19 -0400 Subject: Reference vim-stylish-haskell in VIM integration --- README.markdown | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index 2bc3ca6..9580617 100644 --- a/README.markdown +++ b/README.markdown @@ -100,19 +100,10 @@ Just call or add a keybinding for it. -To run stylish-haskell each time you save a .hs file, add this to your .vimrc: - - augroup stylish-haskell - autocmd! - autocmd BufWritePost *.hs call s:StylishHaskell() - augroup END - - function! s:StylishHaskell() - let cursor_position = getpos('.') - %!stylish-haskell - call setpos('.', cursor_position) - endfunction +There is also the [vim-stylish-haskell] plugin, which runs stylish-haskell +automatically when you save a Haskell file. +[vim-stylish-haskell]: https://github.com/nbouscal/vim-stylish-haskell Emacs integration ----------------- -- cgit v1.2.3