christoomey / vim-tmux-runner

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

VtrSendCommandToRunner sometimes drop characters #59

Open andyw8 opened 8 years ago

andyw8 commented 8 years ago

It seems that VtrSendCommandToRunner sometimes drops leading characters.

For example, if I hit -l to run my last spec, instead of sending bin/spring rspec spec/models/product.rbit will occasionally send n/spring rspec spec/models/product.rb.

If I hit -l again, it works.

Has anyone else observed this?

christoomey commented 8 years ago

@andyw8 can you share the output of verbose nmap <leader>l (assuming I've got the right mapping there)?

I would not expect this, but one thing to check would be if changing the g:VtrClearBeforeSend setting affects things:

let g:VtrClearBeforeSend = 0

That will prepend <c-l> by default to your command, and that might be mapped in your shell somehow?

Let me know what you find and we'll sort this out.

andyw8 commented 8 years ago

The output is:

   <Space>l      <Plug>RunMostRecentSpec
        Last set from ~/.vimrc.local

AFAIK know nothing is mapped to but I'll try tweaking that to see if it makes a difference.

stevehansell commented 8 years ago

I have also experienced this using the standard leader command (<leader>sc).

I believe it happens after I run VtrSendCommand and then later switch to the tmux pane, run commands, and then come back to Vim and run VtrSendCommand.

I'll try to pay closer attention when it happens again.