Tuesday, June 7, 2011

Comments in visual mode

Hello, I'm new in the list. I have used vim during several years, but
I'm not very familiar with some aspects of the editor such as the
macros, mappings and other advanced stuff. I hope I can learn more
about it by following the list.

Apart from the introduction, I have a doubt. I'm several days try to
figure out how to create a macro to do a simple task, but I don't know
how to do it. I'm trying to move from Kile to vim to edit my LaTeX
documents. Of course I'm using the latex-vim package. However there is
a thing I miss a lot when using vim, and it is the ability to easily
comment lines. I would like to be able to use the mouse to select a
piece of text and then press C-d (C-S-d) to (un)comment the text.

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

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:

Post a Comment