I am looking for an easy way to reflow blocks of comments (in GO). According to this post I should be able to just run gq
on a block and it will reflow automatically, but this doesn't seem to work.
Here is some sample text:
// PrintStarredRepos tries to print tags of repo's that have been starred
// adaf da df a da fs daf e according to the "user" configuration setting that is read in from the
// config file.
And this is what the text looks like after I run gq
on it.
// PrintStarredRepos tries to print tags of repo's that have been starred //
adaf da df a da fs daf e according to the "user" configuration setting that is
read in from the // config file.
Here are relevant settings in my vimrc based on details I found in another post.
- textwidth=80
- filetype plugin indent on
- set ft? (filetype=go)
- set comments? (comments=s1:/,mb:,ex:*/,://)
I can't figure out why comments aren't wrapping?