On Saturday 26 September 2009, Harry Putnam wrote:

> I wondered if anyone can show me how to write something for
> commenting better than what I was able to do:
>
>    <F9>          :.,$s/^## //
>
> Replaces ^ with '## ' from current position to end of file
>
> How can I write something that will do that same thing but
> for limited area?

personally i like simple solutions to things -- less to learn, 
less to maintain and debug -- i'd go with something like

    map <F9> :s/^/## /<CR>j

then you just hold F9 down longer for bigger areas

sc

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

Reply via email to