Daniel Choi wrote:
> I use Markdown for a lot of things, and it would be 
> convenient to be able to type things like this:
> 
> Header
> ======

That was discussed here a while ago and I think it was Andy who came up with:

nnoremap <F5> yyp<c-v>$r=

The results of the discussion were put in a tip:
http://vim.wikia.com/wiki/Underline_using_dashes_automatically

There was a reason for preferring <c-v> rather than v. Something to do with 
handling
a line containing tabs?

John


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

Reply via email to