Hi all,

I am curious how other people solve this problem in Vim and whether there's
a generic solution.

Let's say I'm editing a filetype (regardless) and the "tw" value is set to
"78".  This works fine on new lines where I am typing new text -- when I d
this the line I am typing wraps at 78 chars, and all is happy with world.

This falls apart though when I then decide I need to ammend an existing
line.  As soon as I need to do that, the wrapping happens at an odd place,
such that I then find myself having to press "gq}" to reformat the
paragraph, because the edit I've made has made a mess of the formatting.

So my question is:  is there a way of avoiding this "gq}" step, and instead
-- if I have to go and add more text to an existing line where there's a
"set tw=$FOO" line applied to the file, that this is honoured automatically,
without the need to then reformat the edited paragraph via "gq}" to get the
formatting correct?

Kindly,

-- Thomas Adam

P.S. For anyone's who's wondering, yes , I did need to use "gq}" numerous
times throughout this email, due to the problems outlined therein.  :)

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to