preservim / vimux

easily interact with tmux from vim
MIT License
2.2k stars 160 forks source link

RunVimTmuxCommand not an editor command, but RunLastVimTmuxCommand is okay #46

Closed krisleech closed 11 years ago

krisleech commented 11 years ago

If I do :Run I only see RunLastVimTmuxCommand. Manually typing in RunVimTmuxCommand gives "RunVimTmuxCommand not an editor command".

I'm using Vundle to install from your git repo.

By the way the 'Plugins' section of the README sounds like they are plugins for vimux, but they are alternatives? I currently use vim-turbux.

krisleech commented 11 years ago

I tried adding vimux-ruby-test and its commands show up and does run but the buffer I have open gets "corrupted". When i say corrupted it seems like an encoding issue, lots of strange characters.

benmills commented 11 years ago

Could you tell me what versions of tmux, vim and ruby you have installed? The plugins listed in the README are intended to be used with vimux. I'll take a look at making that more clear for others.

krisleech commented 11 years ago

vim 7.3 ruby 1.9.2 tmux 1.4

My bad I see you need a better version of tmux, I will try upgrading.

Is turbux a vimux plugin, I see the others are, but that one confused me.

krisleech commented 11 years ago

vimux-ruby-test works perfectly with tmux 1.6, but I still do not see "RunVimTmuxCommand".

benmills commented 11 years ago

That's strange tmux 1.4 was not working, it should. RunVimTmuxCommand is actually deprecated you should use VimuxRunCommand and both are actually vim functions, not commands. So to call them manually you should use :call VimuxRunCommand("ls"). I normally use VimuxPromptCommand if I want to run an arbitrary command using vimux.

Turbux is a plugin that builds on top of vimux. Vimux only allows you to run commands in a tmux pane. Turbux and vimux-ruby-test allow you to interact with ruby test files and run single tests, groups of tests or the whole file of tests easily in the tmux pane.

krisleech commented 11 years ago

Agreed, I looked in the source for vimux-ruby-test and I see it uses "RunVimTmuxCommand".

VimuxRunCommand works fine tho, so not a problem.

The turbux README says it uses tslime to interact with Tmux. Its what I currently use. I prefer vimux / vimux-ruby-test as they create the tmux pane automatically.

krisleech commented 11 years ago

I find vim-turbux[1] can be used with tslime or vimux as its base. I'll see if I can get it added to their README.

[1] https://github.com/jgdavey/vim-turbux