Open josecastillolema opened 9 months ago
You looking for gv
?
Sorry @alerque I do not follow, could you please elaborate? Just to clarify what I meant:
Because there are a variety of possible use cases and starting scenarios, I'm not sure it makes sense to try to bake this into NERDCommenter itself, but VIM already provides the tooling to compose actions like this yourself. gv reselects that last visual mode selection range, so all you need to do is write yourself a map bound to whatever you like that calls the comment function you'd like and then gv
at the end. All VIM commands are comparable this way so you can build up whatever combination of actions you want.
Hi @alerque , thanks for your comment. Just to document in case anyone it's trying the same setup, have tried:
map <C-/> <plug>NERDCommenterToggle gv<cr>
but presents a erratic behavior. Anyway, if you maintainers feel that this is not the native way of moving forward let me know and I'll close the issue. Thanks
Is there a way to keep a selection after commenting?
Thanks!