Skip to content

xoliver/python-alternate.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

python-alternate.vim

Easy python file <--> python test file switching if your python test files live in a tests folder alongside the implementation files and the naming is similar (something.py <-> tests/test_something.py).

Add your preferred binding to your vim config like this (this one does for <leader> .):

autocmd FileType python nnoremap <silent> <leader>. <Esc>:call OpenPythonAlternate()<CR>

Inspiration

Based on vim-open-alternate, which does not have python and is unsupported and is based on Gary Bernhardt's dotfiles.

About

Easy python file <--> python test file switching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published