I also love Vim, for too many reasons to mention here.
I was looking for a way to get continuous testing as part of my development process. And then I remembered :map.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add to $GOROOT/misc/vim/ftdetect/gofiletype.vim | |
:map :w<ENTER> :w<ENTER>:!gotest<ENTER> |
Now, every time I write my file out, I get glorious testing!!