I have both vim-template to use some custom Go template, and vim-go.
When opening I get some strange mix of the two.
Example:
vim test.go (new file)
package main
import "fmt"
func main() {
fmt.Println("vim-go")
}
package main;
import (
"fmt"
)
func main(){
fmt.Println("Hello World");
If that doesn't work, try edit the =template=.go file under ~/.vim/plugged/vim-template/templates or similar.
Latest vim-go as of now. Not sure which version though.
go version go1.7.4 linux/amd64
Put following line in your vimrc:
let g:go_template_autocreate = 0
Aha! Thanks, will do =)
Most helpful comment
Put following line in your
vimrc: