Life has to be something better than what we can see around us. It must be a kind of utopia that’s just beyond that hill, or just a little bit after the horizon. Whatever the case, it has to be there. I don’t see any other way on how this would work. I think it’s up to us to make life better than it is. Does that make sense? I sure hope it does to someone who’s reading this. If it does then I’ve done something right. If it doesn’t? Well that’s another story for another time.
So I wanted to find a way to make vim do a hard line wrap so it would be in nice chunks when I type without having to do hard wrapping myself. Well, here’s how that’s accomplished:
" Set the maximum width of text to 80 characters
set textwidth=80
" Optional: visual indicator for the 80th column
set colorcolumn=80
" formatoptions settings:
" t: Auto-wrap text using textwidth
" c: Auto-wrap comments using textwidth
" q: Allow formatting of comments with "gq"
set formatoptions+=tcq
I allowed AI to generate it for me, let’s face it, I was too lazy to try and google it for myself. AI can be useful for some things I suppose. AI isn’t out for everyone’s job, that’s just a myth. It’s a tool that can be used from time to time to accomplish small tasks.
And for me? This was the perfect task that I needed it to accomplish.
Comments
Post a Comment