From 3b19528857de2c199cddabbb48278ead59b77b89 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 10 Aug 2017 02:23:36 +0200 Subject: Add ftplugin/haskell.vim Add syntax formatting settings for Haskell. Want 4-space tabs and a maximum of 80 characters per line. Using this style guide: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md --- ftplugin/haskell.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ftplugin/haskell.vim (limited to 'ftplugin/haskell.vim') diff --git a/ftplugin/haskell.vim b/ftplugin/haskell.vim new file mode 100644 index 0000000..d393a45 --- /dev/null +++ b/ftplugin/haskell.vim @@ -0,0 +1,16 @@ +" Haskell vim settings + +" Indentation +setlocal expandtab +setlocal tabstop=4 +setlocal softtabstop=4 +setlocal shiftwidth=4 + + +setlocal textwidth=80 + + +" Don't preserve indentation on empty lines +inoremap +nnoremap o o +nnoremap O O -- cgit v1.2.3