Tuesday, June 7, 2011

Re: Comments in visual mode

On Jun 7, 9:43 am, Juanjo Gomez Navarro
<juanjo.gomeznava...@gmail.com> wrote:
> Does anyone knows how to do it? By the way, I would be even better if
> this trick would also work for other languages such as fortran or
> bash, where the comment symbol is different...

You can do it without any plugins by using column visual mode:

1. move to the beginning of the area to comment
2. press Ctrl-V
3. move down to the last line to comment
4. press I (big leeter i)
5. type the comment character, in your case %
6. press Escape.

Marko


>
> Thanks in advance.
>
> --
>
> Juan José Gómez Navarro

--
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

No comments: