Reply to message «Comments in visual mode», sent 11:43:39 07 June 2011, Tuesday by Juanjo Gomez Navarro:
There is a NERDCommenter[1] plugin which enables you to do this task with <leader>cc (to comment), <leader>c<space> (to toggle commenting) and with some other mappings. [1] https://github.com/scrooloose/nerdcommenter, http://www.vim.org/scripts/script.php?script_id=1218 Original message: > 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.
signature.asc
Description: This is a digitally signed message part.
