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/b6654c85b28b1fbaec56ccfda085afb7c1a06875 below:

Fix shortcuts in plugins, fixes #566 · sheerun/vim-polyglot@b6654c8 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+14

-10

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+14

-10

lines changed Original file line number Diff line number Diff line change

@@ -25,14 +25,6 @@ let did_load_filetypes = 1

25 25

" Be consistent across different systems

26 26

set nofileignorecase

27 27 28 -

func! s:Observe(fn)

29 -

let b:PolyglotObserve = function("polyglot#" . a:fn)

30 -

augroup polyglot-observer

31 -

au! CursorHold,CursorHoldI,BufWritePost <buffer>

32 -

\ if b:PolyglotObserve() | au! polyglot-observer | endif

33 -

augroup END

34 -

endfunc

35 - 36 28

let s:disabled_packages = {}

37 29

let s:new_polyglot_disabled = []

38 30

@@ -112,6 +104,8 @@ func! s:StarSetf(ft)

112 104

endif

113 105

endfunc

114 106 107 +

augroup polyglot-observer | augroup END

108 + 115 109

augroup filetypedetect

116 110 117 111

" Load user-defined filetype.vim and oter plugins ftdetect first

@@ -2621,12 +2615,22 @@ endif

2621 2615 2622 2616

" DO NOT EDIT CODE ABOVE, IT IS GENERATED WITH MAKEFILE

2623 2617 2624 -

au! BufNewFile,BufRead,StdinReadPost * if expand("<afile>:e") == "" |

2618 +

func! s:Observe(fn)

2619 +

let b:PolyglotObserve = function("polyglot#" . a:fn)

2620 +

augroup polyglot-observer

2621 +

au!

2622 +

au CursorHold,CursorHoldI,BufWritePost <buffer> call b:PolyglotObserve()

2623 +

augroup END

2624 +

endfunc

2625 + 2626 +

au BufNewFile,BufRead,StdinReadPost * if expand("<afile>:e") == "" |

2625 2627

\ call polyglot#shebang#Detect() | endif

2626 2628 2627 -

au BufEnter * if &ft == "" && expand("<afile>:e") == "" |

2629 +

au BufWinEnter * if &ft == "" && expand("<afile>:e") == "" |

2628 2630

\ call s:Observe('shebang#Detect') | endif

2629 2631 2632 +

au FileType * au! polyglot-observer

2633 + 2630 2634

augroup END

2631 2635 2632 2636

You can’t perform that action at this time.


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