Re: vim equivalent of save-excursion in emacs

2010-09-08 Thread Ben Fritz
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

Re: vim equivalent of save-excursion in emacs

2010-09-08 Thread Oivvio Polite
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

RE: vim equivalent of save-excursion in emacs

2010-09-07 Thread John Beckett
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

Re: vim equivalent of save-excursion in emacs

2010-09-07 Thread Oivvio Polite
> > 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

Re: vim equivalent of save-excursion in emacs

2010-09-07 Thread Oivvio Polite
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. >

vim equivalent of save-excursion in emacs

2010-09-07 Thread Oivvio Polite
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 --