Quantcast
Channel: vim command to restructure/force text to 80 columns - Stack Overflow
Browsing all 7 articles
Browse latest View live

Answer by ncmathsadist for vim command to restructure/force text to 80 columns

Almost always I use gq in visual mode. I tell my students it stands for "Gentlemens' Quarterly," a magazine for fastidious people.

View Article



Answer by shearn89 for vim command to restructure/force text to 80 columns

Thanks to a comment from DonaldSmith I found this, as the textwidth option didn't reformat my long line of text (I was converting playing with hex-to-byte conversions)::%!fold -w 60That reformated the...

View Article

Answer by Ehtesh Choudhury for vim command to restructure/force text to 80...

If you're looking for a non-Vim way, there's always the UNIX commands fmt and par. Notes: I can't comment on Unicode, it may or may not behave differently.@nelstrom has already mentioned using par in...

View Article

Answer by JohnGH for vim command to restructure/force text to 80 columns

You can use gq with any movement operators. For example, if you only want to reformat to the end of the current line (i.e. to wrap the line that your cursor is on) you can use gq$You can also reformat...

View Article

Answer by Alex Hirzel for vim command to restructure/force text to 80 columns

Michael's solution is the key, but I most often find I want to reformat the rest of thecurrent paragraph; for this behavior, use gq}.

View Article


Answer by Michael Madsen for vim command to restructure/force text to 80 columns

Set textwidth to 80 (:set textwidth=80), move to the start of the file (can be done with Ctrl-Home or gg), and type gqG.gqG formats the text starting from the current position and to the end of the...

View Article

vim command to restructure/force text to 80 columns

I know there are ways to automatically set the width of text in vim using set textwidth (like Vim 80 column layout concerns). What I am looking for is something similar to = (the indent line command)...

View Article
Browsing all 7 articles
Browse latest View live




Latest Images