preservim / vimux

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

Fix VimuxOpenRunner not working for versions of tmux < 3.4 #228

Closed jmriego closed 1 month ago

jmriego commented 1 month ago

This is a fix for #225 to allow VimuxOpenRunner to work for versions of tmux < 3.1

The breaking change was introduced in #217 and was caused because even though the -l flag existed for a long time, it never supported percentage signs until tmux 3.1. Relevant part of their CHANGES

* Add support for percentage sizes for resize-pane ("-x 10%"). Also change
  split-window and join-pane -l to accept similar percentages and deprecate the
  -p flag.

This is an old tmux version so in my opinion the most logical thing is to support by default the newer tmux syntax. The default for g:VimuxHeight is 20%. This won't support the old tmux flag -p so for older versions you'd only be able to specify the size of the split in columns/lines.