Skip to content

Instantly share code, notes, and snippets.

@nelsonsar
Created October 26, 2014 02:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelsonsar/4d940c6296d1502ecd36 to your computer and use it in GitHub Desktop.
Save nelsonsar/4d940c6296d1502ecd36 to your computer and use it in GitHub Desktop.
Abrir o arquivo de teste do arquivo aberto em PHP
function GoToTest(...)
let filename = expand('%:t:r')
let test_filename = filename."Test.php"
"You can use a folder to avoid tabf to open the wrong file
if a:0 > 0
execute "tabf **/".a:1."/".test_filename
else
execute "tabf **/".test_filename
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment