1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 09:35:01 +08:00

Use sources_non_forked folder for pathogen path, with sources_non_forked_fallback folder as fallback.

This commit is contained in:
Wu Tingfeng
2022-11-21 22:56:20 +08:00
parent dddd2e4152
commit d9555d618c
1756 changed files with 4 additions and 250 deletions

View File

@ -1,21 +0,0 @@
let s:debug = 0
function! s:CursorHasGroup(group) abort
return synIDattr(synID(line('.'), col('.'), 1), 'name') =~ a:group
endfunction
function! TestSyntax(pattern, group) abort
let pattern = '\C' . a:pattern
call cursor(1, 1)
redraw
let start_match = search(pattern, 'c') && s:CursorHasGroup(a:group)
if s:debug
redraw | sleep 500m
endif
let end_match = search(pattern, 'e') && s:CursorHasGroup(a:group)
if s:debug
redraw | sleep 500m
endif
return start_match && end_match
endfunction