File: utils.vim

package info (click to toggle)
python-jedi 0.10.0~git1%2Bf05c071-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,064 kB
  • ctags: 3,014
  • sloc: python: 16,997; makefile: 149; ansic: 13
file content (11 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
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