Questions tagged [plugin-vim-commentary]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
100 views

How can I use a plugin mapping in my own mapping?

I often repeat the following commands when I edit code: yy - yank the line gcc - comment out the line (so that I can visually see all the changes later) p - paste back the copied version what I will ...
0
votes
1answer
441 views

How to add JavaScript and JSX comments in the same .js file

I've been using Neovim to do the majority of my dev work for most of 2018 however something that has eluded me is being able to quickly toggle JSX comments {/* JSX */} and regular Javascript ...
1
vote
2answers
2k views

vim comment out every line of text containing a pattern using the 'global' command

In my file containing latex source code, I wish to comment out all the lines matching a pattern (specifically, the pattern that I am interested in is \draw, including the \ character). I have magic ...
0
votes
2answers
645 views

How can I change/delete comments easily?

For commenting and uncommenting I now use the vim-commentary plugin, also the NERD commenter can be used as mentioned in: How to comment out a set of lines which are selected in visual mode? I would ...
1
vote
2answers
289 views

Comment line into a box and undo

What I want I want create a mapping which comments a line into a box, for example textline shall be transformed to " ############################################################################## "...