Tuesday, September 7, 2010

RE: vim equivalent of save-excursion in emacs

Oivvio Polite wrote:
> I came up with this mapping to reformat the current paragraph
> imap <leader>. <Esc>{V}!par<CR>i

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.

Use vip to select the current paragraph (not {V}).

John

--
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

No comments:

Post a Comment