Re:Coming Home to Vim
by sunny36 on Monday September 20, 2010 @11:03PM
(#1711314)
A litte off topic. Much that I like vim I haven't found any plugin than can indent Javascript properly. To be honest whenever I write Javascript I just open up emacs. Is there something close to js-mode in vim?
[ Parent
| on HN ]
Re:Coming Home to Vim
by sharkbrainguy on Tuesday September 21, 2010 @01:05AM
(#1711544)
(ITYM js2-mode) No.
I use this to indent my JS: http://www.vim.org/scripts/script.php?script_id=1936
You could use JSLint plugin to get more of the features, but I've never gotten it to feel like js2-mode.