Syntax Highlighting in Vim

1,245 views
Skip to first unread message

Thomas Moore

unread,
Dec 15, 2013, 2:18:21 AM12/15/13
to julia...@googlegroups.com
I recently installed Ubuntu 12.04, and from there installed Julia through githib. Now, when I open a .jl file in Vim, it seems there's some sort of syntax highlighting which works, but it's inconsistent (words like "function", "print" and "if" are coloured, but others like "for" and "while" are not.)

Does anyone have any idea what's wrong here? Alternatively, I'm not really attached to any editor yet in Ubuntu, and so if there's an easier way to set up another editor with syntax highlighting, feel free to recommend it.

Thanks

Isaiah Norton

unread,
Dec 15, 2013, 8:17:58 AM12/15/13
to julia...@googlegroups.com
I'm not sure what it is defaulting to, but vim does not have Julia highlighting built in (yet). See this package for proper support:
https://github.com/JuliaLang/julia-vim

Thomas Moore

unread,
Jan 31, 2014, 12:25:37 AM1/31/14
to julia...@googlegroups.com
I got it working now :) This is probably quite obvious to most users, but I didn't know a new VIM user needs to make a .vim file in ~/.vim, and if this doesn't exist the manual install won't work. I hope this helps someone.

陶旭

unread,
Dec 31, 2014, 9:09:50 AM12/31/14
to julia...@googlegroups.com
Well, just as you said, the manual method does not work since there is no .vim file in my home directory? Could you share your successful installation experience?

Ratan Sur

unread,
Jul 30, 2015, 7:48:48 PM7/30/15
to julia-users, tomm...@live.com.au
It seems like vim thinks ; is the comment char for julia when it's actually #. Do you know how one might fix this?

Tero Frondelius

unread,
Jul 31, 2015, 1:10:04 AM7/31/15
to julia-users, tomm...@live.com.au
If you are new to Vim, you might also want to consider Juno http://junolab.org/
Reply all
Reply to author
Forward
0 new messages