esamattis / slimux

SLIME inspired tmux integration plugin for Vim
http://esa-matti.suuronen.org/blog/2012/04/19/slimux-tmux-plugin-for-vim/
Other
217 stars 52 forks source link

Sending selection by stripping comments #62

Open dabsingh opened 8 years ago

dabsingh commented 8 years ago

In some cases there can be quite a few comment lines in the selected range and sending the comments to the target pane makes no sense. It would be great to have a flag/argument to SlimuxREPLSendSelection to strip out the comments before sending the selection to the target pane.

dvbuntu commented 8 years ago

If the lines are comments, why is it a problem to send them? And what if you're not sending the lines to an interpreter? You might want to keep the comments. I guess having a flag let's the user choose, but the default should be to send the literal lines without editing.

This sounds like a concern that you might fix at the vim level. Write a macro to temporarily remove the comments, then use slimux, and put the comments back.