On Tue, Feb 28, 2012 at 12:41:49 +0100, [email protected] wrote: > Hi list, > > im looking for a posibillity for fast "underlining" some Text with a > charakter like "=" or "-", which is used in markdown-Syntax. > > I.E. if I write some comment in a program like > > # This is an big Headline > # ======================= > # > # And this a normal headline > # -------------------------- > > So it would be nice to expand the "=" or "-" with a command up to > the end of the upper line. > > How can I do this? Is there a builtin for this? Makro?
You could use for example: > nnoremap ;u yyp:s/./=/g<CR>:nohlsearch<CR> This copies the current line an replaces each character with '=' -- Zombie processes haunting the computer -- 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
