On Sep 7, 6:05 pm, "John Beckett" wrote:
>
> Of course the par tool can do all sorts of clever things, but if
> all you want is wrapping and perhaps a little more, the Vim
> commands are good. To format the current paragraph type:
> gqip
>
> gq is format, ip is inner paragraph.
>
Also, gw w
On Wed, Sep 08, 2010 at 09:05:42AM +1000, John Beckett wrote:
> Of course the par tool can do all sorts of clever things, but if
> all you want is wrapping and perhaps a little more, the Vim
> commands are good. To format the current paragraph type:
> gqip
>
> gq is format, ip is inner paragra
Oivvio Polite wrote:
> I came up with this mapping to reformat the current paragraph
> imap . {V}!pari
Of course the par tool can do all sorts of clever things, but if
all you want is wrapping and perhaps a little more, the Vim
commands are good. To format the current paragraph type:
gqip
>
> nmap . ma{V}!par`a
> imap . ma{V}!par`ai
>
oops, that should be:
nmap . ma{V}:!par`a
imap . ma{V}:!par`ai
--
http://pipedreams.polite.se/about/
--
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
On Tue, Sep 07, 2010 at 11:47:03AM +0200, Oivvio Polite wrote:
> I came up with this mapping to reformat the current paragraph
>
> imap . {V}!pari
>
> when the command is done the cursor will be at the beginning of the
> paragraph rather than where ever it was when the command was issued.
>
I came up with this mapping to reformat the current paragraph
imap . {V}!pari
when the command is done the cursor will be at the beginning of the
paragraph rather than where ever it was when the command was issued.
In emacs I solve this with save-excursion. What do I do in vim?
oivvio
--