5 ms·
I do this. Vim + tmux rocks. One tip that Works For Me (tm) is to map the rarely-used function keys to pane and window selection commands (I hate multi-key com
by luser001 15y ago
I do this. Vim + tmux rocks.
One tip that Works For Me (tm) is to map the rarely-used function keys to pane and window selection commands (I hate multi-key commands :))
I've got F1/F2 mapped to cycle through panes, and F3/F4 to cycle through windows, F5/F6 to split windows, F7/F8 to resize panes, and F9 to open a new window.
Also, I always run my tmux terminal fullscreen and without the menubar.
YMMV.
- Ecio78 15y agoCan you post/pastebin your config for this function keys mapping? thanks! P.S. dont you have problems using tools like "top" and so on?
- luser001 15y agoHope this helps. It's nothing fancy. No, no probs with 'top'. # use ^K instead of default ^B. set-option -g prefix C-k unbind-key C-b bind-key C-k send-prefix # F1, F2 to cycle between windows within a "workspace". # what tmux calls "windows" are like workspaces in WindowMaker. # and what it calls "panes" are like individual xterm windows in a workspace. bind-key -n F2 select-pane -t:.+ bind-key -n F1 select-pane -t:.- # F3, F4 to cycle between workspaces. bind-key -n F3 previous-window bind-key -n F4 next-window # F5 split a workspace horizontally and F6 to split vertically. bind-key -n F5 split-window bind-key -n F6 split-window -h # F9 new workspace bind-key -n F9 new-window # to disconnect from tmux do: ^K+d # or exit all the windows you created. bind-key -n F7 resize-pane -L bind-key -n F8 resize-pane -R
- Ecio78 15y agoThank you, unfortunately I dont know why but F1-F4 are not working, while F5,F6,F9 works. I'm using putty, dont know if this matters. When i press F1,F2,F3,F4 i got ~ on the shell
- luser001 15y agoSorry, I just saw this. And I'm right now on Linux so I can't confirm, so I might be slightly off here. There's a setting under keyboard (or terminal, I forget). You might need to change it to 'X11R6'. Look at section 4.4.3 here: http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter4.html#config-keyboard http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter4.ht... I hope that fixes it for you. Good luck.