Vim Function to Generate a Comment in Go

Adam Presley
2 min readJun 29, 2021
Photo by Kaysha on Unsplash

OK, I’ll admit it. Sometimes I don’t add comments to describe my Go structs and functions. There, I said it. And after my linter properly chastises me, I dutifully work down the list of errors, adding the code comments… One at a time. I know… I know… I should just add the comments while I’m writing the code.

Well, today I found that task tedious. So I decided to write my very first Vim…

--

--

Adam Presley

Just a guy who loves his wife, kids, and writing software.