aboutsummaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorTeddy Wing2017-08-10 02:23:36 +0200
committerTeddy Wing2017-08-10 02:23:36 +0200
commit3b19528857de2c199cddabbb48278ead59b77b89 (patch)
tree758caefe68b796ba02a87bdf0eca2cca26c7b4a1 /ftplugin
parentcfd937a674ddbce7222dd25944ddc5c0c59ebc0c (diff)
downloaddotvim-3b19528857de2c199cddabbb48278ead59b77b89.tar.bz2
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
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/haskell.vim16
1 files changed, 16 insertions, 0 deletions
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 <buffer> <CR> <CR>
+nnoremap <buffer> o o
+nnoremap <buffer> O O