[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: "gq" with hanging indent?
From:       Klaus Bosau <kbosau () web ! de>
Date:       2004-01-31 18:35:14
Message-ID: Pine.WNT.4.55.0401311928110.-521737 () g0z6n0
[Download RAW message or body]

On Sat, 31 Jan 2004, Gumnos (Tim Chase) wrote:

> [...]
>
> I currently have to do it manually, using a "gq" command to split the
> whole thing, join the 2nd-n lines back together, indent it, and then
> resplit the whole remainder again.  however, there's room for things
> to go wrong--rejoining can grab too much if you did a "gqq" and
> there's no empty line between the current one and the next one.
>
> Any grand ideas?

  nn ,gq :s/\%20c\s*/\r\t/<Cr>gq}

Not grand though, just simple.

HTH

Klaus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic