Replies: 1 comment
-
https://stackoverflow.com/questions/72135274/run-gofmt-on-vim-without-plugin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background: I'm on windows and (golang with git-bash) .
I'm glad you are around and if you are willing to help here's what I've got so far after learning a bit more about vim script.
relevant lines from .vimrc
is there something I should have in the .vimrc in addition to, or instead of the above?
Then the problem I was having is that the quickfix window was not opening if gofmt detected errors.
It seemed like the QuickFixCmdPost was not triggered by Fmt. Is this possible?
Trying to trigger it manually, I wasn't able to convince vim to have the "doautocmd QuickFixCmdPost" after the Fmt command,
but putting it in the fmt.vim opens the quickfix list like I was hoping for.
Can you help direct me towards a solution where I don't have to change the plugin code?
Beta Was this translation helpful? Give feedback.
All reactions