Closed Rehtt closed 1 year ago
on windows11 powershell7 use neovim v0.9.2
run :GoRun main.go
:GoRun main.go
output:
:!"go" "run" "main.go" ^[[31;1mParserError: ^[[0m ^[[31;1m^[[36;1mLine |^[[0m ^[[31;1m^[[36;1m^[[36;1m 1 | ^[[0m <a1><ad> e]::OutputEncoding = [System.Text.Encoding]::UTF8; "go" ^[[36;1m"run"^[[0m "main.g <a1><ad>^[[0m ^[[31;1m^[[36;1m^[[36;1m^[[0m^[[36;1m^[[0m^[[36;1m | ^[[31;1m ~~~~~^[[0m ^[[31;1m^[[36;1m^[[36;1m^[[0m^[[36;1m^[[0m^[[36;1m^[[31;1m^[[31;1m^[[36;1m | ^[[31;1mUnexpected token '"run"' in expression or statement.^[[0m
This isn't an issue for vim-go. When you run :!go run main.go, you're executing go run from directly from the shell and vim-go is not involved.. See :help :!.
:!go run main.go
go run
:help :!
on windows11 powershell7 use neovim v0.9.2
run
:GoRun main.go
output: