blob: 21c8fff86c55cb2236512dc6c36de40ff6c4a815 [file] [log] [blame]
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +00001" Vim indent file
2" Language: Javascript
Bram Moolenaarf2571c62015-06-09 19:44:55 +02003" Maintainer: Going to be Darrick Wiebe
4" Last Change: 2015 Jun 09
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +00005
6" Only load this indent file when no other was loaded.
7if exists("b:did_indent")
8 finish
9endif
10let b:did_indent = 1
11
12" C indenting is not too bad.
13setlocal cindent
Bram Moolenaar3acfc302010-07-11 17:23:02 +020014setlocal cinoptions+=j1,J1
Bram Moolenaarf2571c62015-06-09 19:44:55 +020015setlocal cinkeys-=0#
16setlocal cinkeys+=0]
Bram Moolenaardd2a3cd2007-05-05 17:10:09 +000017
18let b:undo_indent = "setl cin<"