gofmt.vim icon indicating copy to clipboard operation
gofmt.vim copied to clipboard

A Vim plugin that runs gofmt when you save

Results 3 gofmt.vim issues
Sort by recently updated
recently updated
newest added

Check the output of `g:gofmt_exe -l` and only modify the buffer if it is not empty. See issue #5

# Description Every time `gofmt#apply` is invoked, another change is added to the undo tree. This is perfectly fine when `gofmt` actually changes the buffer, but it's unnecessary and inconvenient...

My gofmt is under /usr/bin which is in `PATH`, yet gofmt.vim is unable to find it. As a workaround I used: `let g:gofmt_exe = '/usr/bin/gofmt`