Skip to content

Overrides vim's :A command to toggle between go implementation code and test code.

Notifications You must be signed in to change notification settings

benmills/vim-golang-alternate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

vim-golang-alternate

Overrides vim's :A command to toggle between go implementation code and test code.

usage

  • :A will open the current file's tests or the current test's implementation based on what is currently opened.
  • :AS will act the same as :A but will move the current file to a new buffer in a split.
  • :AV will act the same as :AS but with a vertical split.

installation

With vim-bundle: vim-bundle install benmills/vim-golang-alternate

Otherwise download the latest tarball, extract it and move plugin/vim-golang-alternate.vim inside ~/.vim/plugin and ftplugin/go.vim inside ~/.vim/ftplugin. If you're using pathogen, then move the entire folder extracted from the tarball into ~/.vim/bundle.

About

Overrides vim's :A command to toggle between go implementation code and test code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published