A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sheerun/vim-polyglot/commit/d221139bd70fd474be52237dc8e6440e6da632bd below:

Address BufWritePost error, fixes #573 · sheerun/vim-polyglot@d221139 · GitHub

@@ -126,11 +126,11 @@ if !has_key(s:disabled_packages, 'gitignore')

126 126

endif

127 127 128 128

if !has_key(s:disabled_packages, 'tads')

129 -

au! BufNewFile,BufRead *.t call polyglot#detect#T()

129 +

au! BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T()

130 130

endif

131 131 132 132

if !has_key(s:disabled_packages, 'prolog')

133 -

au! BufNewFile,BufRead *.pl call polyglot#detect#Pl()

133 +

au! BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl()

134 134

au BufNewFile,BufRead *.pdb,*.pro,*.prolog,*.yap setf prolog

135 135

endif

136 136

@@ -149,7 +149,7 @@ if !has_key(s:disabled_packages, 'dosini')

149 149

endif

150 150 151 151

if !has_key(s:disabled_packages, 'visual-basic')

152 -

au! BufNewFile,BufRead *.bas call polyglot#detect#Bas()

152 +

au! BufNewFile,BufRead,BufWritePost *.bas call polyglot#detect#Bas()

153 153

au BufNewFile,BufRead *.cls,*.ctl,*.dsm,*.frm,*.frx,*.sba,*.vba,*.vbs setf vb

154 154

endif

155 155

@@ -158,7 +158,7 @@ if !has_key(s:disabled_packages, 'basic')

158 158

endif

159 159 160 160

if !has_key(s:disabled_packages, 'trasys')

161 -

au! BufNewFile,BufRead *.inp call polyglot#detect#Inp()

161 +

au! BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp()

162 162

endif

163 163 164 164

if !has_key(s:disabled_packages, 'zig')

@@ -351,7 +351,7 @@ if !has_key(s:disabled_packages, 'rst')

351 351

endif

352 352 353 353

if !has_key(s:disabled_packages, 'reason')

354 -

au! BufNewFile,BufRead *.re call polyglot#detect#Re()

354 +

au! BufNewFile,BufRead,BufWritePost *.re call polyglot#detect#Re()

355 355

au BufNewFile,BufRead *.rei setf reason

356 356

endif

357 357

@@ -364,9 +364,9 @@ if !has_key(s:disabled_packages, 'raml')

364 364

endif

365 365 366 366

if !has_key(s:disabled_packages, 'raku')

367 -

au! BufNewFile,BufRead *.t call polyglot#detect#T()

368 -

au! BufNewFile,BufRead *.pm call polyglot#detect#Pm()

369 -

au! BufNewFile,BufRead *.pl call polyglot#detect#Pl()

367 +

au! BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T()

368 +

au! BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm()

369 +

au! BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl()

370 370

au BufNewFile,BufRead *.6pl,*.6pm,*.nqp,*.p6,*.p6l,*.p6m,*.pl6,*.pm6,*.pod6,*.raku,*.rakudoc,*.rakumod,*.rakutest,*.t6 setf raku

371 371

endif

372 372

@@ -452,10 +452,10 @@ if !has_key(s:disabled_packages, 'pgsql')

452 452

endif

453 453 454 454

if !has_key(s:disabled_packages, 'perl')

455 -

au! BufNewFile,BufRead *.tt2 call polyglot#detect#Tt2()

456 -

au! BufNewFile,BufRead *.t call polyglot#detect#T()

457 -

au! BufNewFile,BufRead *.pm call polyglot#detect#Pm()

458 -

au! BufNewFile,BufRead *.pl call polyglot#detect#Pl()

455 +

au! BufNewFile,BufRead,BufWritePost *.tt2 call polyglot#detect#Tt2()

456 +

au! BufNewFile,BufRead,BufWritePost *.t call polyglot#detect#T()

457 +

au! BufNewFile,BufRead,BufWritePost *.pm call polyglot#detect#Pm()

458 +

au! BufNewFile,BufRead,BufWritePost *.pl call polyglot#detect#Pl()

459 459

au BufNewFile,BufRead *.xs setf xs

460 460

au BufNewFile,BufRead *.comp,*.mason,*.mhtml setf mason

461 461

au BufNewFile,BufRead *.pod setf pod

@@ -467,7 +467,7 @@ if !has_key(s:disabled_packages, 'opencl')

467 467

endif

468 468 469 469

if !has_key(s:disabled_packages, 'octave')

470 -

au! BufNewFile,BufRead *.m call polyglot#detect#M()

470 +

au! BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M()

471 471

au BufNewFile,BufRead *.oct setf octave

472 472

endif

473 473

@@ -484,8 +484,8 @@ if !has_key(s:disabled_packages, 'ocaml')

484 484

endif

485 485 486 486

if !has_key(s:disabled_packages, 'objc')

487 -

au! BufNewFile,BufRead *.m call polyglot#detect#M()

488 -

au! BufNewFile,BufRead *.h call polyglot#detect#H()

487 +

au! BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M()

488 +

au! BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H()

489 489

endif

490 490 491 491

if !has_key(s:disabled_packages, 'nix')

@@ -503,7 +503,7 @@ if !has_key(s:disabled_packages, 'nginx')

503 503

endif

504 504 505 505

if !has_key(s:disabled_packages, 'murphi')

506 -

au! BufNewFile,BufRead *.m call polyglot#detect#M()

506 +

au! BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M()

507 507

endif

508 508 509 509

if !has_key(s:disabled_packages, 'moonscript')

@@ -524,7 +524,7 @@ if !has_key(s:disabled_packages, 'markdown')

524 524

endif

525 525 526 526

if !has_key(s:disabled_packages, 'mathematica')

527 -

au! BufNewFile,BufRead *.m call polyglot#detect#M()

527 +

au! BufNewFile,BufRead,BufWritePost *.m call polyglot#detect#M()

528 528

au BufNewFile,BufRead *.cdf,*.ma,*.mathematica,*.mma,*.mt,*.nb,*.nbp,*.wl,*.wls,*.wlt setf mma

529 529

endif

530 530

@@ -615,14 +615,14 @@ if !has_key(s:disabled_packages, 'ion')

615 615

endif

616 616 617 617

if !has_key(s:disabled_packages, 'idris2')

618 -

au! BufNewFile,BufRead *.lidr call polyglot#detect#Lidr()

619 -

au! BufNewFile,BufRead *.idr call polyglot#detect#Idr()

618 +

au! BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr()

619 +

au! BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr()

620 620

au BufNewFile,BufRead *.ipkg,idris-response setf idris2

621 621

endif

622 622 623 623

if !has_key(s:disabled_packages, 'idris')

624 -

au! BufNewFile,BufRead *.lidr call polyglot#detect#Lidr()

625 -

au! BufNewFile,BufRead *.idr call polyglot#detect#Idr()

624 +

au! BufNewFile,BufRead,BufWritePost *.lidr call polyglot#detect#Lidr()

625 +

au! BufNewFile,BufRead,BufWritePost *.idr call polyglot#detect#Idr()

626 626

au BufNewFile,BufRead idris-response setf idris

627 627

endif

628 628

@@ -635,7 +635,7 @@ if !has_key(s:disabled_packages, 'i3')

635 635

endif

636 636 637 637

if !has_key(s:disabled_packages, 'html5')

638 -

au! BufNewFile,BufRead *.html call polyglot#detect#Html()

638 +

au! BufNewFile,BufRead,BufWritePost *.html call polyglot#detect#Html()

639 639

au BufNewFile,BufRead *.htm,*.html.hl,*.inc,*.st,*.xht,*.xhtml setf html

640 640

endif

641 641

@@ -703,7 +703,7 @@ if !has_key(s:disabled_packages, 'gmpl')

703 703

endif

704 704 705 705

if !has_key(s:disabled_packages, 'glsl')

706 -

au! BufNewFile,BufRead *.fs call polyglot#detect#Fs()

706 +

au! BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs()

707 707

au BufNewFile,BufRead *.comp,*.fp,*.frag,*.frg,*.fsh,*.fshader,*.geo,*.geom,*.glsl,*.glslf,*.glslv,*.gs,*.gshader,*.shader,*.tesc,*.tese,*.vert,*.vrx,*.vsh,*.vshader setf glsl

708 708

endif

709 709

@@ -720,12 +720,12 @@ if !has_key(s:disabled_packages, 'gdscript')

720 720

endif

721 721 722 722

if !has_key(s:disabled_packages, 'fsharp')

723 -

au! BufNewFile,BufRead *.fs call polyglot#detect#Fs()

723 +

au! BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs()

724 724

au BufNewFile,BufRead *.fsi,*.fsx setf fsharp

725 725

endif

726 726 727 727

if !has_key(s:disabled_packages, 'forth')

728 -

au! BufNewFile,BufRead *.fs call polyglot#detect#Fs()

728 +

au! BufNewFile,BufRead,BufWritePost *.fs call polyglot#detect#Fs()

729 729

au BufNewFile,BufRead *.ft,*.fth setf forth

730 730

endif

731 731

@@ -853,12 +853,12 @@ if !has_key(s:disabled_packages, 'atlas')

853 853

endif

854 854 855 855

if !has_key(s:disabled_packages, 'aspperl')

856 -

au! BufNewFile,BufRead *.asp call polyglot#detect#Asp()

856 +

au! BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp()

857 857

endif

858 858 859 859

if !has_key(s:disabled_packages, 'aspvbs')

860 -

au! BufNewFile,BufRead *.asp call polyglot#detect#Asp()

861 -

au! BufNewFile,BufRead *.asa call polyglot#detect#Asa()

860 +

au! BufNewFile,BufRead,BufWritePost *.asp call polyglot#detect#Asp()

861 +

au! BufNewFile,BufRead,BufWritePost *.asa call polyglot#detect#Asa()

862 862

endif

863 863 864 864

if !has_key(s:disabled_packages, 'asn')

@@ -890,7 +890,7 @@ if !has_key(s:disabled_packages, 'arduino')

890 890

endif

891 891 892 892

if !has_key(s:disabled_packages, 'c/c++')

893 -

au! BufNewFile,BufRead *.h call polyglot#detect#H()

893 +

au! BufNewFile,BufRead,BufWritePost *.h call polyglot#detect#H()

894 894

au BufNewFile,BufRead *.c,*.cats,*.idc,*.qc,*enlightenment/*.cfg setf c

895 895

au BufNewFile,BufRead *.c++,*.cc,*.cp,*.cpp,*.cxx,*.h++,*.hh,*.hpp,*.hxx,*.inc,*.inl,*.ipp,*.moc,*.tcc,*.tlh,*.tpp setf cpp

896 896

endif

@@ -979,7 +979,7 @@ if !has_key(s:disabled_packages, 'abc')

979 979

endif

980 980 981 981

if !has_key(s:disabled_packages, 'abaqus')

982 -

au! BufNewFile,BufRead *.inp call polyglot#detect#Inp()

982 +

au! BufNewFile,BufRead,BufWritePost *.inp call polyglot#detect#Inp()

983 983

endif

984 984 985 985

if !has_key(s:disabled_packages, 'abap')

@@ -3427,13 +3427,6 @@ au BufNewFile,BufRead *.txt

3427 3427

" state.

3428 3428

augroup END

3429 3429 3430 -

" Generic configuration file. Use FALLBACK, it's just guessing!

3431 -

au filetypedetect BufNewFile,BufRead,StdinReadPost *

3432 -

\ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat

3433 -

\ && (getline(1) =~ '^#' || getline(2) =~ '^#' || getline(3) =~ '^#'

3434 -

\ || getline(4) =~ '^#' || getline(5) =~ '^#') |

3435 -

\ setf FALLBACK conf |

3436 -

\ endif

3437 3430 3438 3431

" Restore 'cpoptions'

3439 3432

let &cpo = s:cpo_save


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4