Browse files

new indent script

  • Loading branch information...
1 parent 12f00e5 commit 10fa0c69759d390905ee31a7dc3a108ddeea6e7e @davidosomething committed Jan 25, 2016
Showing with 11 additions and 1 deletion.
  1. +11 −1 md/_posts/
@@ -151,9 +151,17 @@ Some notable options in this case are:
what it finds.
- [jiangmiao/simple-javascript-indenter]
- An indent plugin with an option for alignment under functions.
+- [jason0x43/vim-js-indent]
+ - This is a somewhat new (last updated 2014, as of this writing) indent
+ script that also has some TypeScript support. It is based on an
+ [older indent script by Tye Zdrojewski] and the default JS-in-HTML indent
+ logic that comes with Vim.
+ - The indent logic starts with normal `cindent` styles and adds special
+ cases for comments, JSDoc, arrays, and switch/case.
Since I use [othree/yajs.vim] for my syntax, I use [gavocanov/vim-js-indent]
-for improved indenting.
+for improved indenting. Your best bet with any of these is to try it out and
+see if you like the indent style it provides over what Vim provides by default.
## Related syntaxes
@@ -444,6 +452,8 @@ loads files.
[Ryan Fabella's indent script]:
+[older indent script by Tye Zdrojewski]:
[actually supports any of them]:

0 comments on commit 10fa0c6

Please sign in to comment.