]> Untitled Git - vimfiles.git/commitdiff
automatically check and lint haskell code
authorPhilippe Huerlimann <phihue@gmail.com>
Sat, 27 Oct 2012 14:30:52 +0000 (16:30 +0200)
committerPhilippe Huerlimann <phihue@gmail.com>
Sat, 27 Oct 2012 14:32:53 +0000 (16:32 +0200)
ftplugin/haskell.vim

index f146ed88c271754a4292dccc18930b4b9b4ec4a2..00215efc330279c6337d69d6cd3994d3f74ac23a 100644 (file)
@@ -1,5 +1,5 @@
 setlocal omnifunc=necoghc#omnifunc
 
-nnoremap <leader>f :GhcModCheck<CR>
-nnoremap <leader>l :GhcModLint<CR>
+autocmd BufWritePost *.hs GhcModCheckAndLintAsync
+
 nnoremap <leader>i :GhcModTypeInsert<CR>