Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.06 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.06 KB

altpy.vim

This is a simplistic plugin to easily alternate between Python source and test files. It works for projects which tree looks similar to this one:

.
├── src
│   ├── your_module.py
│   └── package
|       └── other_module.py
└── tests
    ├── __init__.py
    ├── your_module_test.py
    └── package
        └── test_other_module.py

This means tests are expected to be in a separate directory, have test_ prefix or_test suffix and mimic source files structure.

If an exact alternate file is not found the closest directory is opened instead.

To see available commands, run help altpy in your VIM or see doc/altpy.txt.

Instalation

If you are using junegunn/vim-plug:

Plug 'glujan/altpy.vim', {'for': 'python'}

Roadmap

  • Support separete src and tests directories
  • Per-project configuration
  • Support Django-style tests directories
  • Support different test files naming conventions (ie. prefix test_)