Skip to content

Vim plugin to switch between test and production code with multi language support.

Notifications You must be signed in to change notification settings

bodymindarts/vim-twitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-twitch

Vim plugin to switch between test and production code with multi language support.

This plugin aims to support multiple conventions of structuring test/prod code and switching between them (similar to vim-test for running tests).

Please help making this plugin universal by pointing out common conventions that are not yet supported, or contribute directly via a pull-request.

Setup

Plug[in] 'bodymindarts/vim-twitch'

Add your preferred mappings to your .vimrc file:

nnoremap <silent> <leader>t :Twitch<CR>
nnoremap <silent> <leader>vt :VTwitch<CR>
Command Description
:Twitch If you are in a test file it will open the associated production file and vica versa
:VTwitch Like :Twitch just that it will open the file in a vertical split
:STwitch Like :Twitch just that it will open the file in a horizontal split

About

Vim plugin to switch between test and production code with multi language support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published