Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benmills/vim-golang-alternate
Overrides vim's :A command to toggle between go implementation code and test code.
https://github.com/benmills/vim-golang-alternate
Last synced: about 1 month ago
JSON representation
Overrides vim's :A command to toggle between go implementation code and test code.
- Host: GitHub
- URL: https://github.com/benmills/vim-golang-alternate
- Owner: benmills
- Created: 2013-01-16T02:08:09.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-19T16:41:16.000Z (over 11 years ago)
- Last Synced: 2024-04-17T02:56:30.213Z (7 months ago)
- Language: VimL
- Size: 105 KB
- Stars: 22
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
# 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](https://github.com/benmills/vim-bundle)**: `vim-bundle install benmills/vim-golang-alternate`
Otherwise download the latest [tarball](https://github.com/benmills/vim-golang-alternate/tarball/master), extract it and move `plugin/vim-golang-alternate.vim` inside `~/.vim/plugin` and `ftplugin/go.vim` inside `~/.vim/ftplugin`. If you're using [pathogen](https://github.com/tpope/vim-pathogen), then move the entire folder extracted from the tarball into `~/.vim/bundle`.