As others said you can just add a command to BufWritePost. However don't forget that it's just runs it and is not able to capture any parse errors and show you. It also might replace your current buffer with the output of the error so you don't want it. Vim-go takes care of it and has many other small improvements.
I understand you want something simple. Vim-go by default doesn't load anything into your vim runtime. It's all lazily loaded and only is executed if you run it (if you save it in our case). On Mon, Oct 10, 2016 at 2:04 PM, 김용빈 <kyb...@gmail.com> wrote: > Tank you Sander. > > I successfully installed and it works well. > > Still I want to know simple way though. > If anyone knows about it, please let me know. :) > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- Fatih Arslan -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.