adding new stuff
This commit is contained in:
parent
f84d7183aa
commit
9ef8a96f9a
1580 changed files with 0 additions and 0 deletions
11
plugins/bundle/jedi-vim/test/utils.vim
Normal file
11
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