christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

Unify SendLines command by allowing it to take a range #15

Closed christoomey closed 9 years ago

christoomey commented 10 years ago

Currently the visual mode map requires prefixing the command with <Esc>:

vmap ,sv <Esc>:VtrSendSelectedToRunner<cr>

Would be preferable if it could take a range so that users defining the mapping could do so in a more straightforward manner, ie:

vmap ,sv :VtrSendSelectedToRunner<cr>

At a minimum, properly document how to vmap this command in the docs.

raine commented 10 years ago

I thought something was broken when :'<,'>VtrSendSelectedToRunner would say E481: No range allowed

christoomey commented 10 years ago

In a way, something is broken. Hopefully I'll fix this up some day. Hopefully you were able to work around using the above mapping recommendation.