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")
}
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")
}
Copyright © 2021 Jogjafile Inc.
The plugin vim-go does this automatically and provides other useful features for go development like running
gofmton save and adding commands forgo imports