Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to force comment/uncomment instead of toggle? #35

Open
mgutz opened this issue Oct 17, 2014 · 0 comments
Open

How to force comment/uncomment instead of toggle? #35

mgutz opened this issue Oct 17, 2014 · 0 comments

Comments

@mgutz
Copy link

mgutz commented Oct 17, 2014

In most cases toggling comments is what I want. In some cases I want to force uncommented lines to be commented and leave commented lines commented. I imagine something like this

:g/log.debug/CommentaryComment

would change

log.debug('context', JSON.stringify(context))
...
// log.debug('socket.rooms', JSON.stringify(socket.rooms)) 

to this, effectively commenting out all log.debug statements.

// log.debug('context', JSON.stringify(context))
...
//// log.debug('socket.rooms', JSON.stringify(socket.rooms)) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant