Skip to content

Instantly share code, notes, and snippets.

@dptole
Last active March 4, 2023 15:16
Show Gist options
  • Save dptole/67696d338d0ea69fd153 to your computer and use it in GitHub Desktop.
Save dptole/67696d338d0ea69fd153 to your computer and use it in GitHub Desktop.
My Vim configurations.
set sts=2
set ts=2
set sw=2
set et
set number
set encoding=utf-8
syntax on
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
autocmd BufReadPost,BufNewFile *.elm setfiletype haskell
@dptole
Copy link
Author

dptole commented Nov 12, 2019

I could have used https://github.com/junegunn/vim-plug together with https://github.com/ElmCast/elm-vim to highlight *.elm files syntax but its easier just to use haskell syntax instead

  • There is almost nothing to highlight in the first place
  • elm is basically mini haskell on the frontend
  • I just need the highlighter to distinguish between comments, types, strings and keywords, nothing more than that

Keep it simple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment