mirror of
https://github.com/amix/vimrc
synced 2025-07-12 06:05:01 +08:00
Added jedi-vim
This commit is contained in:
11
sources_non_forked/jedi-vim/test/_utils.vim
Normal file
11
sources_non_forked/jedi-vim/test/_utils.vim
Normal file
@ -0,0 +1,11 @@
|
||||
function! CurrentBufferIsModule(module_name)
|
||||
return EndsWith(bufname('%'), a:module_name.'.py')
|
||||
endfunction
|
||||
|
||||
|
||||
function EndsWith(string, end)
|
||||
let l:should = len(a:string) - strlen(a:end)
|
||||
return l:should == stridx(a:string, a:end, should)
|
||||
endfunction
|
||||
|
||||
" vim: et:ts=4:sw=4
|
Reference in New Issue
Block a user