I am playing around with the "Go" programming language and using Vim with the vim-go plugin. Every time I save, this plugin seems to pipe the contents of the file to less and this gets really annoying as the file becomes larger. Even putting a !
after the w
is not helping. Pressing Q removes the 'less' part which removes the need to hold in the enter key til the end of the file is reached but I don't want to keep doing that.
Anyone using this plugin and knows a way to prevent 'less' from being called on save?
let g:go_fmt_fail_silently = 1
and let g:go_fmt_autosave = 0
seem to have done the trick. When I test each one separately, both work independently. But I just added them both because I have nothing to loosse. Just playing with the language. – Touch