cmd + / commenting broken when multiple lines were selected
See original GitHub issueAs the title says, after last update when multiple line were selected using V
, only the line with cursor will be commented using cmd + /
, although gc
doesn’t have this issue, I can’t set my vim-commentary to work correctly on jsx/tsx files.
v0.0.44
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Commenting multiple lines in DOS batch file - Stack Overflow
First - there are two different cases where we can need multi line comments - in a bracket's context where GOTO cannot be...
Read more >How do I do comments at a Windows command prompt?
The REM command only remarks (i.e. Say something as a comment) the line from being executed. However ...
Read more >Bulk comment / uncomment is broken in certain cases #19868
The problem here is if you press cmd + / again, it actually adds extra inline comments instead of removing the code block...
Read more >Comment Shortcut Not Working - Visual Studio Feedback
When attempting to comment out a line of code, using CTRL + '/' , about 20 clicks of the Slash are required to...
Read more >How to: Break and Combine Statements in Code - Visual Basic
To break a single statement into multiple lines ... terminating all but the last line. VB Copy. cmd.CommandText = _ "SELECT * FROM...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The above solution didn’t work for me unfortunately didn’t work for me, but I was able to get CMD+/ working for multiline commenting doing the following. Maybe it will help anyone else who comes across this issue.
Pass through CMD+/ key to neovim:
Use the
gc
mappings as mentioned elsewhere. Then map the command keys to thegc
mappings (recursively!).Also setting
should bring you the correct behavior too (in case if you overwrote
<C-/>
with custom bindings)