-
Notifications
You must be signed in to change notification settings - Fork 307
Expand file tree
/
Copy pathinit.vim
More file actions
3621 lines (2817 loc) · 105 KB
/
init.vim
File metadata and controls
3621 lines (2817 loc) · 105 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
" Vim support file to detect file types
"
" Maintainer: Adam Stankiewicz <sheerun@sher.pl>
" URL: https://github.com/sheerun/vim-polyglot
" Listen very carefully, I will say this only once
if exists("did_load_polyglot")
finish
endif
" Switch to compatible mode for the time being
let s:cpo_save = &cpo
set cpo&vim
let did_load_polyglot = 1
let g:polyglot_initialized = 0
func! polyglot#init#init()
" A no-op as sourcing this file is enough
endfunc
func! polyglot#init#is_disabled(caller, name, path)
if !g:polyglot_initialized
if a:path[0:7] == "autoload"
let g:polyglot_initialized = 1
for p in globpath(&rtp, a:path, 0, 1)
if p != a:caller
exe "source " . p
endif
endfor
endif
endif
return has_key(g:polyglot_is_disabled, a:name)
endfunc
let g:polyglot_is_disabled = {}
let s:new_polyglot_disabled = []
if exists('g:polyglot_disabled')
for pkg in g:polyglot_disabled
let base = split(pkg, '\.')
if len(base) > 0
let g:polyglot_is_disabled[pkg] = 1
call add(s:new_polyglot_disabled, base[0])
endif
endfor
else
let g:polyglot_disabled_not_set = 1
endif
func! PolyglotVerify()
if exists("g:polyglot_disabled_not_set")
if exists("g:polyglot_disabled")
echohl WarningMsg
echo "vim-polyglot: g:polyglot_disabled should be defined before loading vim-polyglot"
echohl None
endif
unlet g:polyglot_disabled_not_set
endif
endfun
au VimEnter * call PolyglotVerify()
function! s:SetDefault(name, value)
if !exists(a:name)
let {a:name} = a:value
endif
endfunction
call s:SetDefault('g:markdown_enable_spell_checking', 0)
call s:SetDefault('g:markdown_enable_input_abbreviations', 0)
call s:SetDefault('g:markdown_enable_mappings', 0)
" Enable jsx syntax by default
call s:SetDefault('g:jsx_ext_required', 0)
" Needed for sql highlighting
call s:SetDefault('g:javascript_sql_dialect', 'sql')
" Enable jsdoc highlighting by default
call s:SetDefault('g:javascript_plugin_jsdoc', 1)
" Make csv loading faster
call s:SetDefault('g:csv_start', 1)
call s:SetDefault('g:csv_end', 2)
call s:SetDefault('g:csv_default_delim', ',')
" Disable json concealing by default
call s:SetDefault('g:vim_json_syntax_conceal', 0)
call s:SetDefault('g:filetype_euphoria', 'elixir')
if !exists('g:python_highlight_all')
call s:SetDefault('g:python_highlight_builtins', 1)
call s:SetDefault('g:python_highlight_builtin_objs', 1)
call s:SetDefault('g:python_highlight_builtin_types', 1)
call s:SetDefault('g:python_highlight_builtin_funcs', 1)
call s:SetDefault('g:python_highlight_builtin_funcs_kwarg', 1)
call s:SetDefault('g:python_highlight_exceptions', 1)
call s:SetDefault('g:python_highlight_string_formatting', 1)
call s:SetDefault('g:python_highlight_string_format', 1)
call s:SetDefault('g:python_highlight_string_templates', 1)
call s:SetDefault('g:python_highlight_indent_errors', 1)
call s:SetDefault('g:python_highlight_space_errors', 1)
call s:SetDefault('g:python_highlight_doctests', 1)
call s:SetDefault('g:python_highlight_func_calls', 1)
call s:SetDefault('g:python_highlight_class_vars', 1)
call s:SetDefault('g:python_highlight_operators', 1)
call s:SetDefault('g:python_highlight_file_headers_as_comments', 1)
call s:SetDefault('g:python_slow_sync', 1)
endif
" Some variables are needed for haxe loading
" We need it because scripts.vim in vim uses "set ft=" which cannot be
" overridden with setf (and we can't use set ft= so our scripts.vim work)
func! s:Setf(ft)
if &filetype !~# '\<'.a:ft.'\>'
let &filetype = a:ft
endif
endfunc
" Function used for patterns that end in a star: don't set the filetype if the
" file name matches ft_ignore_pat.
" When using this, the entry should probably be further down below with the
" other StarSetf() calls.
func! s:StarSetf(ft)
if expand("<amatch>") !~ g:ft_ignore_pat
exe 'setf ' . a:ft
endif
endfunc
augroup polyglot-observer | augroup END
if exists('s:cpo_save')
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save
endif
" Load user-defined filetype.vim and oter plugins ftdetect first
" This is to use polyglot-defined ftdetect always as fallback to user settings
augroup filetypedetect
runtime! filetype.vim
runtime! ftdetect/*.vim
augroup END
augroup filetypedetect
" Switch to compatible mode for the time being
let s:cpo_save = &cpo
set cpo&vim
if !has_key(g:polyglot_is_disabled, 'ftdetect')
" It can happen vim filetype.vim loads first, then we need a reset
if exists("did_load_filetypes")
au! filetypedetect
endif
" Prevent filetype.vim of vim from loading again
let did_load_filetypes = 1
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
if !has_key(g:polyglot_is_disabled, 'org')
au BufNewFile,BufRead *.org setf org
endif
if !has_key(g:polyglot_is_disabled, 'mermaid')
au BufNewFile,BufRead *.mermaid,*.mm,*.mmd setf mermaid
endif
if !has_key(g:polyglot_is_disabled, 'openscad')
au BufNewFile,BufRead *.scad setf openscad
endif
if !has_key(g:polyglot_is_disabled, 'nftables')
au BufNewFile,BufRead *.nft,*/nftables.conf setf nftables
endif
if !has_key(g:polyglot_is_disabled, 'just')
au BufNewFile,BufRead *.just,\cjustfile setf just
endif
if !has_key(g:polyglot_is_disabled, 'sway')
au BufNewFile,BufRead *.sway.config,*.swayconfig,*sway/config,swayconfig setf swayconfig
endif
if !has_key(g:polyglot_is_disabled, 'hjson')
au BufNewFile,BufRead *.hjson setf hjson
endif
if !has_key(g:polyglot_is_disabled, 'gleam')
au BufNewFile,BufRead *.gleam setf gleam
endif
if !has_key(g:polyglot_is_disabled, 'jsonc')
au BufNewFile,BufRead *.cjson,*.jsonc,{.,}babelrc,{.,}eslintrc.json,{.,}jshintrc,{.,}jslintrc,{.,}mocharc.json,coc-settings.json,coffeelint.json,jsconfig.json,tsconfig.json setf jsonc
endif
if !has_key(g:polyglot_is_disabled, 'mint')
au BufNewFile,BufRead *.mint setf mint
endif
if !has_key(g:polyglot_is_disabled, 'context')
au BufNewFile,BufRead *.mkii,*.mkiv,*.mkvi setf context
endif
if !has_key(g:polyglot_is_disabled, 'xpm2')
au BufNewFile,BufRead *.xpm2 setf xpm2
endif
if !has_key(g:polyglot_is_disabled, 'xpm')
au! BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm()
au BufNewFile,BufRead *.xpm setf xpm
endif
if !has_key(g:polyglot_is_disabled, 'xf86conf')
au BufNewFile,BufRead */xorg.conf.d/*.conf,xorg.conf,xorg.conf-4 setf xf86conf
au BufNewFile,BufRead XF86Config-4* call s:StarSetf('xf86conf')
au BufNewFile,BufRead XF86Config* call s:StarSetf('xf86conf')
endif
if !has_key(g:polyglot_is_disabled, 'text')
au BufNewFile,BufRead *.text,README setf text
endif
if !has_key(g:polyglot_is_disabled, 'svn')
au BufNewFile,BufRead svn-commit*.tmp setf svn
endif
if !has_key(g:polyglot_is_disabled, 'logcheck')
au BufNewFile,BufRead */etc/logcheck/*.d*/* call s:StarSetf('logcheck')
endif
if !has_key(g:polyglot_is_disabled, 'fvwm')
au BufNewFile,BufRead */.fvwm/* call s:StarSetf('fvwm')
endif
if !has_key(g:polyglot_is_disabled, 'crontab')
au BufNewFile,BufRead crontab setf crontab
au BufNewFile,BufRead crontab.* call s:StarSetf('crontab')
au BufNewFile,BufRead */etc/cron.d/* call s:StarSetf('crontab')
endif
if !has_key(g:polyglot_is_disabled, 'bzr')
au BufNewFile,BufRead bzr_log.* call s:StarSetf('bzr')
endif
if !has_key(g:polyglot_is_disabled, 'asteriskvm')
au BufNewFile,BufRead *asterisk*/*voicemail.conf* call s:StarSetf('asteriskvm')
endif
if !has_key(g:polyglot_is_disabled, 'asterisk')
au BufNewFile,BufRead *asterisk/*.conf* call s:StarSetf('asterisk')
endif
if !has_key(g:polyglot_is_disabled, 'apachestyle')
au BufNewFile,BufRead proftpd.conf* call s:StarSetf('apachestyle')
au BufNewFile,BufRead */etc/proftpd/conf.*/* call s:StarSetf('apachestyle')
au BufNewFile,BufRead */etc/proftpd/*.conf* call s:StarSetf('apachestyle')
endif
if !has_key(g:polyglot_is_disabled, 'z8a')
au BufNewFile,BufRead *.z8a setf z8a
endif
if !has_key(g:polyglot_is_disabled, 'zimbu')
au BufNewFile,BufRead *.zu setf zimbu
endif
if !has_key(g:polyglot_is_disabled, 'yacc')
au BufNewFile,BufRead *.y++,*.yxx,*.yy setf yacc
endif
if !has_key(g:polyglot_is_disabled, 'xslt')
au BufNewFile,BufRead *.xsl,*.xslt setf xslt
endif
if !has_key(g:polyglot_is_disabled, 'xsd')
au BufNewFile,BufRead *.xsd setf xsd
endif
if !has_key(g:polyglot_is_disabled, 'xquery')
au BufNewFile,BufRead *.xq,*.xql,*.xqm,*.xquery,*.xqy setf xquery
endif
if !has_key(g:polyglot_is_disabled, 'xmodmap')
au BufNewFile,BufRead *Xmodmap setf xmodmap
au BufNewFile,BufRead *xmodmap* call s:StarSetf('xmodmap')
endif
if !has_key(g:polyglot_is_disabled, 'xmath')
au BufNewFile,BufRead *.msc,*.msf setf xmath
endif
if !has_key(g:polyglot_is_disabled, 'xdefaults')
au BufNewFile,BufRead *.ad,{.,}Xdefaults,{.,}Xpdefaults,{.,}Xresources,xdm-config setf xdefaults
au BufNewFile,BufRead Xresources* call s:StarSetf('xdefaults')
au BufNewFile,BufRead */app-defaults/* call s:StarSetf('xdefaults')
au BufNewFile,BufRead */Xresources/* call s:StarSetf('xdefaults')
endif
if !has_key(g:polyglot_is_disabled, 'xinetd')
au BufNewFile,BufRead */etc/xinetd.conf setf xinetd
au BufNewFile,BufRead */etc/xinetd.d/* call s:StarSetf('xinetd')
endif
if !has_key(g:polyglot_is_disabled, 'xhtml')
au BufNewFile,BufRead *.xht,*.xhtml setf xhtml
endif
if !has_key(g:polyglot_is_disabled, 'wsh')
au BufNewFile,BufRead *.ws[fc] setf wsh
endif
if !has_key(g:polyglot_is_disabled, 'cvs')
au BufNewFile,BufRead cvs\d\+ setf cvs
endif
if !has_key(g:polyglot_is_disabled, 'cvsrc')
au BufNewFile,BufRead {.,}cvsrc setf cvsrc
endif
if !has_key(g:polyglot_is_disabled, 'wvdial')
au BufNewFile,BufRead {.,}wvdialrc,wvdial.conf setf wvdial
endif
if !has_key(g:polyglot_is_disabled, 'wsml')
au BufNewFile,BufRead *.wsml setf wsml
endif
if !has_key(g:polyglot_is_disabled, 'winbatch')
au BufNewFile,BufRead *.wbt setf winbatch
endif
if !has_key(g:polyglot_is_disabled, 'wml')
au BufNewFile,BufRead *.wml setf wml
endif
if !has_key(g:polyglot_is_disabled, 'wget')
au BufNewFile,BufRead {.,}wgetrc,wgetrc setf wget
endif
if !has_key(g:polyglot_is_disabled, 'webmacro')
au BufNewFile,BufRead *.wm setf webmacro
endif
if !has_key(g:polyglot_is_disabled, 'wast')
au BufNewFile,BufRead *.wast,*.wat setf wast
endif
if !has_key(g:polyglot_is_disabled, 'vroom')
au BufNewFile,BufRead *.vroom setf vroom
endif
if !has_key(g:polyglot_is_disabled, 'vrml')
au BufNewFile,BufRead *.wrl setf vrml
endif
if !has_key(g:polyglot_is_disabled, 'vgrindefs')
au BufNewFile,BufRead vgrindefs setf vgrindefs
endif
if !has_key(g:polyglot_is_disabled, 'viminfo')
au BufNewFile,BufRead {.,}viminfo,_viminfo setf viminfo
endif
if !has_key(g:polyglot_is_disabled, 'vim')
au BufNewFile,BufRead *.vba,*.vim,{.,}exrc,_exrc setf vim
au BufNewFile,BufRead *vimrc* call s:StarSetf('vim')
endif
if !has_key(g:polyglot_is_disabled, 'vhdl')
au BufNewFile,BufRead *.hdl,*.vbe,*.vhd,*.vhdl,*.vho,*.vst setf vhdl
au BufNewFile,BufRead *.vhdl_[0-9]* call s:StarSetf('vhdl')
endif
if !has_key(g:polyglot_is_disabled, 'systemverilog')
au BufNewFile,BufRead *.sv,*.svh setf systemverilog
endif
if !has_key(g:polyglot_is_disabled, 'verilogams')
au BufNewFile,BufRead *.va,*.vams setf verilogams
endif
if !has_key(g:polyglot_is_disabled, 'verilog')
au BufNewFile,BufRead *.v setf verilog
endif
if !has_key(g:polyglot_is_disabled, 'vera')
au BufNewFile,BufRead *.vr,*.vrh,*.vri setf vera
endif
if !has_key(g:polyglot_is_disabled, 'upstart')
au BufNewFile,BufRead */.config/upstart/*.conf,*/.config/upstart/*.override,*/.init/*.conf,*/.init/*.override,*/etc/init/*.conf,*/etc/init/*.override,*/usr/share/upstart/*.conf,*/usr/share/upstart/*.override setf upstart
endif
if !has_key(g:polyglot_is_disabled, 'updatedb')
au BufNewFile,BufRead */etc/updatedb.conf setf updatedb
endif
if !has_key(g:polyglot_is_disabled, 'uc')
au BufNewFile,BufRead *.uc setf uc
endif
if !has_key(g:polyglot_is_disabled, 'udevperm')
au BufNewFile,BufRead */etc/udev/permissions.d/*.permissions setf udevperm
endif
if !has_key(g:polyglot_is_disabled, 'udevconf')
au BufNewFile,BufRead */etc/udev/udev.conf setf udevconf
endif
if !has_key(g:polyglot_is_disabled, 'uil')
au BufNewFile,BufRead *.uil,*.uit setf uil
endif
if !has_key(g:polyglot_is_disabled, 'tsscl')
au BufNewFile,BufRead *.tsscl setf tsscl
endif
if !has_key(g:polyglot_is_disabled, 'tssop')
au BufNewFile,BufRead *.tssop setf tssop
endif
if !has_key(g:polyglot_is_disabled, 'tssgm')
au BufNewFile,BufRead *.tssgm setf tssgm
endif
if !has_key(g:polyglot_is_disabled, 'trustees')
au BufNewFile,BufRead trustees.conf setf trustees
endif
if !has_key(g:polyglot_is_disabled, 'treetop')
au BufNewFile,BufRead *.treetop setf treetop
endif
if !has_key(g:polyglot_is_disabled, 'tpp')
au BufNewFile,BufRead *.tpp setf tpp
endif
if !has_key(g:polyglot_is_disabled, 'tidy')
au BufNewFile,BufRead {.,}tidyrc,tidy.conf,tidyrc setf tidy
endif
if !has_key(g:polyglot_is_disabled, 'texmf')
au BufNewFile,BufRead texmf.cnf setf texmf
endif
if !has_key(g:polyglot_is_disabled, 'texinfo')
au BufNewFile,BufRead *.texi,*.texinfo,*.txi setf texinfo
endif
if !has_key(g:polyglot_is_disabled, 'tex')
au BufNewFile,BufRead *.bbl,*.dtx,*.latex,*.ltx,*.sty setf tex
endif
if !has_key(g:polyglot_is_disabled, 'terminfo')
au BufNewFile,BufRead *.ti setf terminfo
endif
if !has_key(g:polyglot_is_disabled, 'teraterm')
au BufNewFile,BufRead *.ttl setf teraterm
endif
if !has_key(g:polyglot_is_disabled, 'tsalt')
au BufNewFile,BufRead *.slt setf tsalt
endif
if !has_key(g:polyglot_is_disabled, 'tli')
au BufNewFile,BufRead *.tli setf tli
endif
if !has_key(g:polyglot_is_disabled, 'tcl')
au BufNewFile,BufRead *.itcl,*.itk,*.jacl,*.tcl,*.tk setf tcl
endif
if !has_key(g:polyglot_is_disabled, 'taskedit')
au BufNewFile,BufRead *.task setf taskedit
endif
if !has_key(g:polyglot_is_disabled, 'taskdata')
au BufNewFile,BufRead {pending,completed,undo}.data setf taskdata
endif
if !has_key(g:polyglot_is_disabled, 'tak')
au BufNewFile,BufRead *.tak setf tak
endif
if !has_key(g:polyglot_is_disabled, 'tags')
au BufNewFile,BufRead tags setf tags
endif
if !has_key(g:polyglot_is_disabled, 'sudoers')
au BufNewFile,BufRead */etc/sudoers,sudoers.tmp setf sudoers
endif
if !has_key(g:polyglot_is_disabled, 'sdc')
au BufNewFile,BufRead *.sdc setf sdc
endif
if !has_key(g:polyglot_is_disabled, 'sysctl')
au BufNewFile,BufRead */etc/sysctl.conf,*/etc/sysctl.d/*.conf setf sysctl
endif
if !has_key(g:polyglot_is_disabled, 'sil')
au BufNewFile,BufRead *.sil setf sil
endif
if !has_key(g:polyglot_is_disabled, 'swiftgyb')
au BufNewFile,BufRead *.swift.gyb setf swiftgyb
endif
if !has_key(g:polyglot_is_disabled, 'voscm')
au BufNewFile,BufRead *.cm setf voscm
endif
if !has_key(g:polyglot_is_disabled, 'sml')
au BufNewFile,BufRead *.sml setf sml
endif
if !has_key(g:polyglot_is_disabled, 'stp')
au BufNewFile,BufRead *.stp setf stp
endif
if !has_key(g:polyglot_is_disabled, 'smcl')
au BufNewFile,BufRead *.hlp,*.ihlp,*.smcl setf smcl
endif
if !has_key(g:polyglot_is_disabled, 'stata')
au BufNewFile,BufRead *.ado,*.do,*.imata,*.mata setf stata
endif
if !has_key(g:polyglot_is_disabled, 'sshdconfig')
au BufNewFile,BufRead */etc/ssh/sshd_config.d/*.conf,sshd_config setf sshdconfig
endif
if !has_key(g:polyglot_is_disabled, 'sshconfig')
au BufNewFile,BufRead */.ssh/config,*/etc/ssh/ssh_config.d/*.conf,ssh_config setf sshconfig
endif
if !has_key(g:polyglot_is_disabled, 'sqr')
au BufNewFile,BufRead *.sqi,*.sqr setf sqr
endif
if !has_key(g:polyglot_is_disabled, 'sqlj')
au BufNewFile,BufRead *.sqlj setf sqlj
endif
if !has_key(g:polyglot_is_disabled, 'squid')
au BufNewFile,BufRead squid.conf setf squid
endif
if !has_key(g:polyglot_is_disabled, 'spice')
au BufNewFile,BufRead *.sp,*.spice setf spice
endif
if !has_key(g:polyglot_is_disabled, 'slice')
au BufNewFile,BufRead *.ice setf slice
endif
if !has_key(g:polyglot_is_disabled, 'spup')
au BufNewFile,BufRead *.spd,*.spdata,*.speedup setf spup
endif
if !has_key(g:polyglot_is_disabled, 'hog')
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
endif
if !has_key(g:polyglot_is_disabled, 'mib')
au BufNewFile,BufRead *.mib,*.my setf mib
endif
if !has_key(g:polyglot_is_disabled, 'snobol4')
au BufNewFile,BufRead *.sno,*.spt setf snobol4
endif
if !has_key(g:polyglot_is_disabled, 'smith')
au BufNewFile,BufRead *.smith,*.smt setf smith
endif
if !has_key(g:polyglot_is_disabled, 'st')
au BufNewFile,BufRead *.st setf st
endif
if !has_key(g:polyglot_is_disabled, 'slrnsc')
au BufNewFile,BufRead *.score setf slrnsc
endif
if !has_key(g:polyglot_is_disabled, 'slrnrc')
au BufNewFile,BufRead {.,}slrnrc setf slrnrc
endif
if !has_key(g:polyglot_is_disabled, 'skill')
au BufNewFile,BufRead *.cdf,*.il,*.ils setf skill
endif
if !has_key(g:polyglot_is_disabled, 'sisu')
au BufNewFile,BufRead *.-sst,*.-sst.meta,*._sst,*._sst.meta,*.ssi,*.ssm,*.sst,*.sst.meta setf sisu
endif
if !has_key(g:polyglot_is_disabled, 'sinda')
au BufNewFile,BufRead *.s85,*.sin setf sinda
endif
if !has_key(g:polyglot_is_disabled, 'simula')
au BufNewFile,BufRead *.sim setf simula
endif
if !has_key(g:polyglot_is_disabled, 'screen')
au BufNewFile,BufRead {.,}screenrc,screenrc setf screen
endif
if !has_key(g:polyglot_is_disabled, 'scheme')
au BufNewFile,BufRead *.scm,*.ss setf scheme
endif
if !has_key(g:polyglot_is_disabled, 'catalog')
au BufNewFile,BufRead catalog setf catalog
au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog')
endif
if !has_key(g:polyglot_is_disabled, 'setserial')
au BufNewFile,BufRead */etc/serial.conf setf setserial
endif
if !has_key(g:polyglot_is_disabled, 'slpspi')
au BufNewFile,BufRead */etc/slp.spi setf slpspi
endif
if !has_key(g:polyglot_is_disabled, 'spyce')
au BufNewFile,BufRead *.spi,*.spy setf spyce
endif
if !has_key(g:polyglot_is_disabled, 'slpreg')
au BufNewFile,BufRead */etc/slp.reg setf slpreg
endif
if !has_key(g:polyglot_is_disabled, 'slpconf')
au BufNewFile,BufRead */etc/slp.conf setf slpconf
endif
if !has_key(g:polyglot_is_disabled, 'services')
au BufNewFile,BufRead */etc/services setf services
endif
if !has_key(g:polyglot_is_disabled, 'sm')
au BufNewFile,BufRead sendmail.cf setf sm
endif
if !has_key(g:polyglot_is_disabled, 'sieve')
au BufNewFile,BufRead *.sieve,*.siv setf sieve
endif
if !has_key(g:polyglot_is_disabled, 'sdl')
au BufNewFile,BufRead *.pr,*.sdl setf sdl
endif
if !has_key(g:polyglot_is_disabled, 'sd')
au BufNewFile,BufRead *.sd setf sd
endif
if !has_key(g:polyglot_is_disabled, 'scilab')
au BufNewFile,BufRead *.sce,*.sci setf scilab
endif
if !has_key(g:polyglot_is_disabled, 'sbt')
au BufNewFile,BufRead *.sbt setf sbt
endif
if !has_key(g:polyglot_is_disabled, 'sather')
au BufNewFile,BufRead *.sa setf sather
endif
if !has_key(g:polyglot_is_disabled, 'sass')
au BufNewFile,BufRead *.sass setf sass
endif
if !has_key(g:polyglot_is_disabled, 'sas')
au BufNewFile,BufRead *.sas setf sas
endif
if !has_key(g:polyglot_is_disabled, 'samba')
au BufNewFile,BufRead smb.conf setf samba
endif
if !has_key(g:polyglot_is_disabled, 'slang')
au BufNewFile,BufRead *.sl setf slang
endif
if !has_key(g:polyglot_is_disabled, 'rtf')
au BufNewFile,BufRead *.rtf setf rtf
endif
if !has_key(g:polyglot_is_disabled, 'rpcgen')
au BufNewFile,BufRead *.x setf rpcgen
endif
if !has_key(g:polyglot_is_disabled, 'robots')
au BufNewFile,BufRead robots.txt setf robots
endif
if !has_key(g:polyglot_is_disabled, 'rpl')
au BufNewFile,BufRead *.rpl setf rpl
endif
if !has_key(g:polyglot_is_disabled, 'rng')
au BufNewFile,BufRead *.rng setf rng
endif
if !has_key(g:polyglot_is_disabled, 'rnc')
au BufNewFile,BufRead *.rnc setf rnc
endif
if !has_key(g:polyglot_is_disabled, 'resolv')
au BufNewFile,BufRead resolv.conf setf resolv
endif
if !has_key(g:polyglot_is_disabled, 'remind')
au BufNewFile,BufRead *.rem,*.remind,{.,}reminders setf remind
au BufNewFile,BufRead .reminders* call s:StarSetf('remind')
endif
if !has_key(g:polyglot_is_disabled, 'rrst')
au BufNewFile,BufRead *.rrst,*.srst setf rrst
endif
if !has_key(g:polyglot_is_disabled, 'rmd')
au BufNewFile,BufRead *.rmd,*.smd setf rmd
endif
if !has_key(g:polyglot_is_disabled, 'rnoweb')
au BufNewFile,BufRead *.rnw,*.snw setf rnoweb
endif
if !has_key(g:polyglot_is_disabled, 'rexx')
au BufNewFile,BufRead *.jrexx,*.orx,*.rex,*.rexx,*.rexxj,*.rxj,*.rxo,*.testGroup,*.testUnit setf rexx
endif
if !has_key(g:polyglot_is_disabled, 'rego')
au BufNewFile,BufRead *.rego setf rego
endif
if !has_key(g:polyglot_is_disabled, 'rib')
au BufNewFile,BufRead *.rib setf rib
endif
if !has_key(g:polyglot_is_disabled, 'readline')
au BufNewFile,BufRead {.,}inputrc,inputrc setf readline
endif
if !has_key(g:polyglot_is_disabled, 'rcs')
au BufNewFile,BufRead *\,v setf rcs
endif
if !has_key(g:polyglot_is_disabled, 'ratpoison')
au BufNewFile,BufRead {.,}ratpoisonrc,ratpoisonrc setf ratpoison
endif
if !has_key(g:polyglot_is_disabled, 'radiance')
au BufNewFile,BufRead *.mat,*.rad setf radiance
endif
if !has_key(g:polyglot_is_disabled, 'pyrex')
au BufNewFile,BufRead *.pxd,*.pyx setf pyrex
endif
if !has_key(g:polyglot_is_disabled, 'protocols')
au BufNewFile,BufRead */etc/protocols setf protocols
endif
if !has_key(g:polyglot_is_disabled, 'promela')
au BufNewFile,BufRead *.pml setf promela
endif
if !has_key(g:polyglot_is_disabled, 'psf')
au BufNewFile,BufRead *.psf setf psf
endif
if !has_key(g:polyglot_is_disabled, 'procmail')
au BufNewFile,BufRead {.,}procmail,{.,}procmailrc setf procmail
endif
if !has_key(g:polyglot_is_disabled, 'privoxy')
au BufNewFile,BufRead *.action setf privoxy
endif
if !has_key(g:polyglot_is_disabled, 'obj')
au BufNewFile,BufRead *.obj setf obj
endif
if !has_key(g:polyglot_is_disabled, 'ppwiz')
au BufNewFile,BufRead *.ih,*.it setf ppwiz
endif
if !has_key(g:polyglot_is_disabled, 'pccts')
au BufNewFile,BufRead *.g setf pccts
endif
if !has_key(g:polyglot_is_disabled, 'povini')
au BufNewFile,BufRead {.,}povrayrc setf povini
endif
if !has_key(g:polyglot_is_disabled, 'pov')
au BufNewFile,BufRead *.pov setf pov
endif
if !has_key(g:polyglot_is_disabled, 'ppd')
au BufNewFile,BufRead *.ppd setf ppd
endif
if !has_key(g:polyglot_is_disabled, 'postscr')
au BufNewFile,BufRead *.afm,*.ai,*.eps,*.epsf,*.epsi,*.pfa,*.ps setf postscr
endif
if !has_key(g:polyglot_is_disabled, 'pfmain')
au BufNewFile,BufRead main.cf setf pfmain
endif
if !has_key(g:polyglot_is_disabled, 'po')
au BufNewFile,BufRead *.po,*.pot setf po
endif
if !has_key(g:polyglot_is_disabled, 'plp')
au BufNewFile,BufRead *.plp setf plp
endif
if !has_key(g:polyglot_is_disabled, 'plsql')
au BufNewFile,BufRead *.pls,*.plsql setf plsql
endif
if !has_key(g:polyglot_is_disabled, 'plm')
au BufNewFile,BufRead *.p36,*.pac,*.plm setf plm
endif
if !has_key(g:polyglot_is_disabled, 'pli')
au BufNewFile,BufRead *.pl1,*.pli setf pli
endif
if !has_key(g:polyglot_is_disabled, 'pine')
au BufNewFile,BufRead {.,}pinerc,{.,}pinercex,pinerc,pinercex setf pine
endif
if !has_key(g:polyglot_is_disabled, 'pilrc')
au BufNewFile,BufRead *.rcp setf pilrc
endif
if !has_key(g:polyglot_is_disabled, 'pinfo')
au BufNewFile,BufRead */.pinforc,*/etc/pinforc setf pinfo
endif
if !has_key(g:polyglot_is_disabled, 'cmod')
au BufNewFile,BufRead *.cmod setf cmod
endif
if !has_key(g:polyglot_is_disabled, 'pike')
au BufNewFile,BufRead *.pike,*.pmod setf pike
endif
if !has_key(g:polyglot_is_disabled, 'pdf')
au BufNewFile,BufRead *.pdf setf pdf
endif
if !has_key(g:polyglot_is_disabled, 'pascal')
au BufNewFile,BufRead *.dpr,*.lpr,*.pas,*.pp setf pascal
endif
if !has_key(g:polyglot_is_disabled, 'passwd')
au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd
endif
if !has_key(g:polyglot_is_disabled, 'papp')
au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp
endif
if !has_key(g:polyglot_is_disabled, 'pamenv')
au BufNewFile,BufRead {.,}pam_environment,pam_env.conf setf pamenv
endif
if !has_key(g:polyglot_is_disabled, 'pamconf')
au BufNewFile,BufRead */etc/pam.conf setf pamconf
au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf')
endif
if !has_key(g:polyglot_is_disabled, 'pf')
au BufNewFile,BufRead pf.conf setf pf
endif
if !has_key(g:polyglot_is_disabled, 'ora')
au BufNewFile,BufRead *.ora setf ora
endif
if !has_key(g:polyglot_is_disabled, 'opl')
au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl
endif
if !has_key(g:polyglot_is_disabled, 'openroad')
au BufNewFile,BufRead *.or setf openroad
endif
if !has_key(g:polyglot_is_disabled, 'omnimark')
au BufNewFile,BufRead *.xin,*.xom setf omnimark
endif
if !has_key(g:polyglot_is_disabled, 'occam')
au BufNewFile,BufRead *.occ setf occam
endif
if !has_key(g:polyglot_is_disabled, 'nsis')
au BufNewFile,BufRead *.nsh,*.nsi setf nsis
endif
if !has_key(g:polyglot_is_disabled, 'nqc')
au BufNewFile,BufRead *.nqc setf nqc
endif
if !has_key(g:polyglot_is_disabled, 'nroff')
au BufNewFile,BufRead *.1,*.1in,*.1m,*.1x,*.2,*.3,*.3in,*.3m,*.3p,*.3pm,*.3qt,*.3x,*.4,*.5,*.6,*.7,*.8,*.9,*.man,*.mdoc setf nroff
au BufNewFile,BufRead *.mom,*.nr,*.roff,*.tmac,*.tr setf nroff
au BufNewFile,BufRead tmac.* call s:StarSetf('nroff')
endif
if !has_key(g:polyglot_is_disabled, 'ncf')
au BufNewFile,BufRead *.ncf setf ncf
endif
if !has_key(g:polyglot_is_disabled, 'ninja')
au BufNewFile,BufRead *.ninja setf ninja
endif
if !has_key(g:polyglot_is_disabled, 'netrc')
au BufNewFile,BufRead {.,}netrc setf netrc
endif
if !has_key(g:polyglot_is_disabled, 'neomuttrc')
au BufNewFile,BufRead Neomuttrc setf neomuttrc
au BufNewFile,BufRead neomuttrc* call s:StarSetf('neomuttrc')
au BufNewFile,BufRead Neomuttrc* call s:StarSetf('neomuttrc')
au BufNewFile,BufRead .neomuttrc* call s:StarSetf('neomuttrc')
au BufNewFile,BufRead */.neomutt/neomuttrc* call s:StarSetf('neomuttrc')
endif
if !has_key(g:polyglot_is_disabled, 'natural')
au BufNewFile,BufRead *.NS[ACGLMNPS] setf natural
endif
if !has_key(g:polyglot_is_disabled, 'nanorc')
au BufNewFile,BufRead *.nanorc,*/etc/nanorc setf nanorc
endif
if !has_key(g:polyglot_is_disabled, 'n1ql')
au BufNewFile,BufRead *.n1ql,*.nql setf n1ql
endif
if !has_key(g:polyglot_is_disabled, 'mush')
au BufNewFile,BufRead *.mush setf mush
endif
if !has_key(g:polyglot_is_disabled, 'mupad')
au BufNewFile,BufRead *.mu setf mupad
endif
if !has_key(g:polyglot_is_disabled, 'muttrc')
au BufNewFile,BufRead Mutt{ng,}rc setf muttrc
au BufNewFile,BufRead mutt{ng,}rc* call s:StarSetf('muttrc')
au BufNewFile,BufRead Mutt{ng,}rc* call s:StarSetf('muttrc')
au BufNewFile,BufRead .mutt{ng,}rc* call s:StarSetf('muttrc')
au BufNewFile,BufRead */etc/Muttrc.d/* call s:StarSetf('muttrc')
au BufNewFile,BufRead */.mutt{ng,}/mutt{ng,}rc* call s:StarSetf('muttrc')
endif
if !has_key(g:polyglot_is_disabled, 'msql')
au BufNewFile,BufRead *.msql setf msql
endif
if !has_key(g:polyglot_is_disabled, 'mrxvtrc')
au BufNewFile,BufRead {.,}mrxvtrc,mrxvtrc setf mrxvtrc
endif
if !has_key(g:polyglot_is_disabled, 'srec')
au BufNewFile,BufRead *.mot,*.s19,*.s28,*.s37,*.srec setf srec
endif
if !has_key(g:polyglot_is_disabled, 'mplayerconf')
au BufNewFile,BufRead */.mplayer/config,mplayer.conf setf mplayerconf
endif
if !has_key(g:polyglot_is_disabled, 'modconf')
au BufNewFile,BufRead */etc/conf.modules,*/etc/modules,*/etc/modules.conf setf modconf
au BufNewFile,BufRead */etc/modprobe.* call s:StarSetf('modconf')
endif