This function allows you to switch to correct unit testing module quickly, using the filename hardcoded at the end of the file. Idea is stolen from Twisted sources. Put this to your ftplugin/python.vim: nmap :call JumpToTestFile() fun! JumpToTestFile() let line = getline("$") if line =~ "^### testfile: " let filename = strpart(line, 14) execute ":e " . filename else echo "TEST PATTERN ### testfile: NOT FOUND!" endif endfun
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Category |
|
Author |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
Rating |
|
abstract |
|