For a long time I've used tmux for split horizontal and vertical windows
I found the default key mappings cumbersome and so I remapped split vertical and split horizontal from being the quotes ("
) and percentage (%
) keys to being the -
and |
keys.
I remapped these to "|" and "-" which I find both easier to remember and easier to key (less hand stretching!)
However with the latest version of tmux this mapping is not longer recognized.
I get errors about split-window: command not found
I can still use the original keys - " and % - without a problem
This is the mapping I've used previously:
bind | split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind - split-window -v -c '#{pane_current_path}' # Split panes vertically
More Details:
tmux source ~/.tmuux.conf
gives
$ tmux source ~/.tmux.conf
tmux source ~/.tmux.conf
unknown key: split-window
history -a
Update: using quotes around the mapping key works.