JavaScript indentation for VIM
Vim script
Latest commit 7770c0c Mar 1, 2016 Paolo Gavocanov readme update
Permalink
Failed to load latest commit information.
indent Revert "Merge with dot-chain updates" Feb 5, 2016
LICENSE Initial commit Aug 30, 2015
README.md readme update Mar 1, 2016

README.md

note

I'm using now this setup for months:

Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'mxw/vim-jsx', { 'for': ['javascript', 'javascript.jsx'] }

and I'm very happy with it.

If I remember correctly the initial necessity for this plugin was some problems with the combination of yajs and the jsx plugin, by using just pangloss JS plugin I'm having no problems at all now and all the new ES stuff just works, including the semicolon-less style.

Yajs was kind of nice on the eyes but was getting slower and slower for me after every update, and the colouring was not much consistent IMHO.

Hope this helps.

vim-js-indent

JavaScript indentation for VIM

This project just hosts the 'indent' part from the (excellent) vim-javascript plugin by Darrick Wiebe (pangloss).

The vim-javascript plugin is not very actively maintained any more and it's lacking all the new JSX/ES6 language features. Most JS developers out there are switching to yajs or vim-javascript-syntax but both of those, even tho they are inspired and/or forked from vim-javascript, lack the indentation that vim-javascript provided.

So here it goes, vim-js-indent providing just this piece of functionality.

Installation is straightforward, just clone it in your ~/.vim/bundle or use any plugin manager out there, like pathogen, vundle, neobundle. There is no need for any make or build steps, just plain clone will do the work.