christoomey / vim-tmux-runner

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

VtrSendCommandToRunner sends ^L #45

Open jyurek opened 9 years ago

jyurek commented 9 years ago

The workaround is to set let g:VtrClearBeforeSend = 0.

VtrSendCommandToRunner will try to clear the terminal before running a command with ^L. If your terminal doesn't like that for whatever reason, it won't get cleared and the command won't run because there's a ^L on the front of it. I don't know why, but mine exhibits this behavior.

christoomey commented 9 years ago

I'm interested in understanding why ^L doesn't work for your terminal, but an alternate fix for you would be to find a sequence that does work and set it to g:VtrClearSequence, e.g.

let g:VtrClearSequence = "clear"

https://github.com/christoomey/vim-tmux-runner/blob/515f7d8730359495c09d1a79949520a7e1f20cab/doc/vim-tmux-runner.txt#L409-L426

russ commented 9 years ago

I'm having this problem as well. Not sure what the setup issue is. I'm using iTerm if that helps. My fix was to set the clear sequence variable to this.

let g:VtrClearSequence = "clear\r"
raine commented 9 years ago

~I have this issue because ^L is mapped to https://github.com/zsh-users/zaw/blob/master/sources/ack.zsh~

I realized the mapping is useless, and removed it. But I probably wouldn't have known the cause without this issue.

astier commented 3 years ago

I have this issue as well. I am using st as my terminal.