Skip to content

Instantly share code, notes, and snippets.

@dptole
Last active March 4, 2023 15:16
Show Gist options
  • Select an option

  • Save dptole/67696d338d0ea69fd153 to your computer and use it in GitHub Desktop.

Select an option

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

dptole commented Nov 12, 2019

Copy link
Copy Markdown
Author

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