Adding new stuff
This commit is contained in:
parent
0074feeaf2
commit
57684cdc5c
1582 changed files with 205558 additions and 0 deletions
11
vim-plugins/bundle/jedi-vim/test/utils.vim
Normal file
11
vim-plugins/bundle/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue