Reputation: 1
I want to store the following code permanently in the .vimrc file. Can anyone provide me the code to do so?
package main import "fmt" func main() { fmt.Println("Hello World") }
Upvotes: -1
Views: 193
Reputation: 31
The plugin vim-go does this automatically and provides other useful features for go development like running gofmt on save and adding commands for go imports
gofmt
go imports
Upvotes: 0