Vim indenter for standalone and embedded JavaScript and TypeScript.
- Add
Plug 'jason0x43/vim-js-indent'
to your.vimrc
- Restart vim
- Run
:PlugInstall
Clone https://github.com/jason0x43/vim-js-indent.git
into your bundles
directory (~/.vim/bundle
).
js_indent_flat_switch
- Boolean, default=0
Set to 1 to make `case` statements align with their containing `switch`. js_indent_logging
- Boolean, default=0
Set to 1 to enable logging comments (useful for debugging). js_indent_typescript
- Boolean, default=1
Set to 0 to disable use of the JavaScript indenter for TypeScript buffers.
Copyright © 2014-2016 Jason Cheatham. Distributed under the same terms as Vim
itself. See :help license
.