3 ms·
I use Openbox with some keybindings I picked up from ArchBang a while back, documented here [1]. tmux really comes into its own when you combine it with Vim an
by atweiden 10y ago
I use Openbox with some keybindings I picked up from ArchBang a while back, documented here [1].
tmux really comes into its own when you combine it with Vim and FZF [2]. I was initially hesitant to try tmux, but once I themed my tmux.conf and nailed down the keybindings, it became indispensable to me. I now use tmux as a basic organizational tool, and I always have at least one tmux session running on my desktop.
I have Ctrl+A+S bound to split the tmux screen horizontally, and Ctrl+A+A to toggle maximizing the tmux pane. Shift-DownArrow opens up a new tmux window to the right of the current one. Shift-LeftArrow and Shift-RightArrow move left and right between the tmux windows. I wanted it to be reminiscent of URxvt tabs.
Another one of my favorite bindings works as follows: visually highlight a line in Vim, then hit <leader>tj, which sends the highlighted line of code to an open terminal in a split tmux window below. Very useful for REPLs. You can also open Vim in the lower split terminal and use the same keybinding to send text directly from one Vim instance to another. It uses vim-tbone [3] and some custom bindings from @junegunn.
[1] https://github.com/atweiden/dotfiles https://github.com/atweiden/dotfiles
[2] https://github.com/junegunn/fzf https://github.com/junegunn/fzf
[3] https://github.com/tpope/vim-tbone https://github.com/tpope/vim-tbone
- devereaux 10y agoVery interesting. I love vim, and find the screen/vim mix a little unpleasant. A few years ago I looked at tmux and concluded I did't really need it because screen already did everything I needed. On https://camo.githubusercontent.com/a3919061a8cf1a25c7150e3e0fe297200ff5e458/68747470733a2f2f692e696d6775722e636f6d2f327759635a727a2e706e67 https://camo.githubusercontent.com/a3919061a8cf1a25c7150e3e0... I see you seem to be passing some info from vim to tmux right bottom bar, the utf8 the encoding. In vim, I usually show my offset in the file there. Can you tell me more about that? The only thing I hate with gnu screen is the space wasted on the bottom bar, and the need to have commands in backticks otherwise Would yo suggest some good resource to theme tmux? (I use the thinkpad dedicated previous and next button, right above the left and right arrow keys to move between tabs in all tabbed applications. A pleasure to use. With shift, then change me to the previous/next desktop. With control, they move the currently focused window to the previous or next desktop, and change focus to that desktop too)
- atweiden 10y ago> I see you seem to be passing some info from vim to tmux right bottom bar, the utf8 the encoding. In vim, I usually show my offset in the file there. The bottom bar is rendered by Vim with lightline [1]. The top bar is my tmux statusline, which I created by lightly customizing the output of tmuxline.vim [2]. I made my tmux.conf by customizing what I found on github, in particular @junegunn's dotfiles [3]. [1] https://github.com/itchyny/lightline.vim https://github.com/itchyny/lightline.vim [2] https://github.com/edkolev/tmuxline.vim https://github.com/edkolev/tmuxline.vim [3] https://github.com/junegunn/dotfiles https://github.com/junegunn/dotfiles