Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No flag to disable the template? #1191

Closed
jD91mZM2 opened this issue Jan 31, 2017 · 2 comments
Closed

No flag to disable the template? #1191

jD91mZM2 opened this issue Jan 31, 2017 · 2 comments

Comments

@jD91mZM2
Copy link

Behavior

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");

Steps to reproduce:

  1. Get vim-template
  2. Open a .go file.
  3. That should be it, to already see some strange results.

If that doesn't work, try edit the =template=.go file under ~/.vim/plugged/vim-template/templates or similar.

Configuration

Latest vim-go as of now. Not sure which version though.
go version go1.7.4 linux/amd64

@skhal
Copy link

skhal commented Feb 10, 2017

Put following line in your vimrc:

let g:go_template_autocreate = 0

@jD91mZM2
Copy link
Author

Aha! Thanks, will do =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants