dwyl / learn-vim

💻 Learn how to use the Vim (or Helix!) text editor to write/edit code *much* faster and get more done in less time! ⏳❤️ ✅
9 stars 0 forks source link

How to Enable Elixir Syntax Highlighting in Vim By Default? #10

Open nelsonic opened 5 years ago

nelsonic commented 5 years ago

This question can be broken down into 4 parts/sections:

nelsonic commented 5 years ago

Searched for: https://www.google.com/search?q=how+to+enable+syntax+highlighting+in+vim (pretty obvious query starting point)

Reading this: https://mediatemple.net/community/products/dv/204644480/enabling-vi-syntax-colors

nelsonic commented 5 years ago

Reading this guide got me the first two lines of my ~/.vimrc file: image

nelsonic commented 5 years ago

When I open an .eex file, e.g: mvim rumbl/lib/rumbl_web/templates/page/index.html.eex

I see a lifeless file: image

If you're wondering what this file is, see: https://github.com/nelsonic/practice/issues/55

nelsonic commented 5 years ago

From my research: https://www.google.com/search?q=Elixir+syntax+highlighting+in+vim This appears to be a good option: https://github.com/elixir-editors/vim-elixir

nelsonic commented 5 years ago

Picking @samhstn's brains on this: https://github.com/samhstn/my-config/issues/45

nelsonic commented 5 years ago

Progress: image

Using: https://github.com/slashmili/alchemist.vim

nelsonic commented 5 years ago

https://news.ycombinator.com/item?id=6262015

SimonLab commented 5 years ago

I'm currently also testing vim-elixir (just had enough of Atom freezing my computer today!) I'm not using any plugins manager like pathogen or vundle as it seems that vim version 8 provide a way to install plugins with the "packages" feature: see https://vimhelp.org/repeat.txt.html#packages and http://vimcasts.org/episodes/packages/ for a short video on how to install plugins directly with vim 8