mirror of
https://github.com/amix/vimrc
synced 2025-07-08 18:04:59 +08:00
Use sources_non_forked folder for pathogen path, with sources_non_forked_fallback folder as fallback.
This commit is contained in:
@ -1,31 +0,0 @@
|
||||
set nocompatible
|
||||
|
||||
let $LANG='en_US'
|
||||
|
||||
filetype off
|
||||
set runtimepath+=../
|
||||
set runtimepath+=../build/tabular/
|
||||
set runtimepath+=../build/vim-toml/
|
||||
set runtimepath+=../build/vim-json/
|
||||
set runtimepath+=../build/vader.vim/
|
||||
filetype on
|
||||
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
|
||||
function! Markdown_GetScriptID(fname) abort
|
||||
let l:snlist = ''
|
||||
redir => l:snlist
|
||||
silent! scriptnames
|
||||
redir END
|
||||
let l:mx = '^\s*\(\d\+\):\s*\(.*\)$'
|
||||
for l:line in split(l:snlist, "\n")
|
||||
if stridx(substitute(l:line, '\\', '/', 'g'), a:fname) >= 0
|
||||
return substitute(l:line, l:mx, '\1', '')
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
function! Markdown_GetFunc(fname, funcname) abort
|
||||
return function('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
|
||||
endfunction
|
Reference in New Issue
Block a user