]> Untitled Git - vimfiles.git/commitdiff
some more Haskell settings
authorPhilippe Hürlimann <p@hurlimann.org>
Thu, 3 Nov 2016 21:10:13 +0000 (22:10 +0100)
committerPhilippe Hürlimann <p@hurlimann.org>
Thu, 3 Nov 2016 21:10:13 +0000 (22:10 +0100)
ftplugin/haskell.vim

index e54465fe02ffa4ab90e33e9b9d4d2594c3179ad8..f6c70998c572d1ae858424264348ce4c84629a86 100644 (file)
@@ -1,5 +1,16 @@
+set tabstop=8                   "A tab is 8 spaces
+set expandtab                   "Always uses spaces instead of tabs
+set softtabstop=4               "Insert 4 spaces when tab is pressed
+set shiftwidth=4                "An indent is 4 spaces
+set shiftround                  "Round indent to nearest shiftwidth multiple
+
 setlocal omnifunc=necoghc#omnifunc
 
-autocmd BufWritePost *.hs GhcModCheckAndLintAsync
+let g:necoghc_enable_detailed_browse = 1
+
+autocmd BufWritePost *.hs GhcModCheckAsync
 
 nnoremap <localleader>i :GhcModTypeInsert<CR>
+nnoremap <leader>t :GhcModType<CR>
+nnoremap <leader>s :GhcModSplitFunCase<CR>
+nnoremap <leader>i :GhcModInfo<CR>