I'm starting to use tmux (I'm thinking of switching from screen), but I'm having a hard time telling which pane is focused when I split a window into multiple panes. Is there a config customization or something that can highlight the focused pane a little more explicitly?
相关问题
- tmux script for fast window switching with fzf-tmu
- TMUX Session Won't Import Python Module
- How to get stdout and stderr from a tmux session?
- iTerm 2 not honoring key bindings declared in .tmu
- Vim + tmux + WSL shows squares and strange charact
相关文章
- Tmux: how do I bind function keys to commands?
- Find tmux session that a PID belongs to
- Configure tmux scroll speed
- Alert in tmux when a process completes
- With $TERM='screen-256color' under tmux, H
- How to copy from tmux running in putty to windows
- How to copy from tmux running in putty to windows
- In tmux can I resize a pane to an absolute value
One Solution that works for me is to add a display-pane at the end of the hotkey for a pane switch. This displays all the pane numbers, with the current pane in a different color. You can also use
<escape_key> + q
to display pane numbers.I use
alt+h/j/k/l
to switch between panes, and I use the following binding.As answered in another post it is now possible in tmux 2.1 to set the colours of individual panes. Ones can use:
in the
~/.tmux.conf
file to show a difference between the active/inactive panes.With Vim If you find it does not work with Vim panes, it might be down to the colourscheme you are using. First, try another colourscheme such as
pablo
. For further details, see the other post.Customize
status-left
and use the#P
character pair, which is the pane number. You will probably want to include more than just the pane number in the status bar, but here is an example of the line you would add to your~/.tmux.conf
for just the pane number:See the tmux man page for more character pairs: http://manpages.ubuntu.com/manpages/precise/en/man1/tmux.1.html
Here are the relevant settings:
So, try adding something like this to your
~/.tmux.conf
:That will set a blue border around the active pane. The
pane-active-border-bg
option can be used for a more visible solution, as well.