>I begin to use vim to edit Matlab M files. From time to time I need to
comment
>or uncomment a block of text by adding or removing "%"s in front of
each
>sentence. Could anybody tell me how to do it in vim? Thank you very
much.

Use <^V> and arrows to highlight the 1st char of each line, then
<I><%><esc> to Insert a '%' at the beginning.

To reverse, <^V> to highlight all the '%'s then <x> to delete them.

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

Reply via email to