Skip to content

glujan/altpy.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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_)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published