Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks
nelsonic opened this issue Jan 20, 2019 · 8 comments
Open
4 tasks

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

nelsonic opened this issue Jan 20, 2019 · 8 comments

Comments

@nelsonic
Copy link
Member

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

  • How to enable syntax highlighting
  • How to highlight Elixir syntax
  • How to define this in a configuration file
  • How to ensure that our configuration file is always loaded when we open a new Vim session.
@nelsonic
Copy link
Member Author

@nelsonic
Copy link
Member Author

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

@nelsonic
Copy link
Member Author

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
Copy link
Member Author

@nelsonic
Copy link
Member Author

Picking @samhstn's brains on this: samhstn/my-config#45

@nelsonic nelsonic self-assigned this Jan 20, 2019
@nelsonic
Copy link
Member Author

Progress:
image

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

@nelsonic
Copy link
Member Author

@SimonLab
Copy link
Member

SimonLab commented Feb 14, 2019

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

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

No branches or pull requests

2 participants