On 27/10/08 05:32, Daniel Choi wrote:
>
> In Markdown, the recommended markup for a blockquoted region is to put
> a ">" character plus a space before each line of the blockquote. Any
> recommendations for a good way to automate this?

1. Select blockwise, starting at the left margin, by means of Ctrl-V 
plus vertical cursor motion.
2. hit I (i.e., shift-i) to insert before the block.
3. type > followed by space
4. Esc to leave Insert mode.

You can automate steps 2 to 4, e.g. with

        :xnoremap <F4> I> <Esc>

To blockquote the text just pasted or yanked, you can map the whole 
sequence (steps 1 to 4) as

        :nnoremap <F4> '[<C-V>']I> <Esc>

Best regards,
Tony.
-- 
Brace yourselves.  We're about to try something that borders on the
unique: an actually rather serious technical book which is not only
(gasp) vehemently anti-Solemn, but also (shudder) takes sides.  I tend
to think of it as `Constructive Snottiness.'
                -- Mike Padlipsky, Foreword to "Elements of Networking
                   Style"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to