Tmux has forever changed the way I write code.

preview_player
Показать описание
Before tmux, I spent most of my time working in graphical editors and interfaces, and found working in the terminal difficult to do.

After moving to tmux and learning how to configure it to suit my needs, I now spend nearly all my time whilst writing code in tmux.

In this video, I share the configuration that I’ve developed over the years to improve my own productivity, and why you may want to consider using tmux yourself.

#coding #programming #software

Need a cheatsheet for tmux? Visit the Dreams of Code Store

My socials:

My Equipment:

00:00 Intro
00:21 Why Tmux?
01:20 Getting started
02:59 How to use Tmux
06:59 Better Navigation
08:53 Colors
09:20 Prefix key
09:49 Theme
10:36 Mouse Support
10:51 Window numbering
11:17 Yanking
12:26 Current working directory
Рекомендации по теме
Комментарии
Автор

You should do a pull request for your better setup as a sane default. Open source needs better defaults in general to make and keep users.

TheAMadMan
Автор

To easily remember vertical and horizontal splits, just add this
bind | split-window -h
bind _ split-window -v

Then, you can split the window with a visual reminder of where you want the divider.

brianloomis
Автор

This video actually seems organized enough that someone like me who has never used TMUX could actually try to get it up and running. Thanks, mate!

OswaldChisala
Автор

have always loved tmux, loving your extra config options that I haven't thought of before! Mouse support is a boon and has been part of my config since I learned about it, I also changed the vertical & horizontal split keybinds to the "[" and "-" keys respectively as they represent the direction of the split.

I didn't realize tmux had its own package/plugin manager, that is really cool!

Thanks for sharing!!

gamerscodex
Автор

Amazing video as always! I was using tmux but didn't know about the plugins that you can install, my workflow just improved a lot with this!

josesanchezfernandez
Автор

Liked, subscribed and saved to my playlist. Currently trying my best to learn vim keybindings, tmux, shell scripting while juggling through college courses.
I couldn't be more thankful for this video. Hope you upload as frequently as possible. Cheers!

naavidmorshed
Автор

7 min and I love everything about the video, format, audio, narrative, visual and a good knowledge foundation, you got me, new subscriber here waiting for more content like this, keep the hard work because is definitely paying off 🎉

oscarcastillejo
Автор

I've done 2 week test runs on both VIM with TMUX and EMACS. Both times I decided they were solutions to problems they created while also adding a ton of work for configuration and mental overhead remembering how it all works. For now, I've decided my zen is zero config. I can download whatever IDE I want, pull from Git and go.

Maybe one day I'll dedicate a longer period of time to trying it out, maybe a month or two because I think having everything set up like this is just cool. Thanks for the video, if I ever do try again I'll reference this.

trowadeath
Автор

Thanks a lot for sharing this config. I've been playing with Neovim and Tmux for almost a year now but being a dad with close to no free time so I never had a chance to optimize my configuration as much as I initially intended to (installed a meh theme and vim keybindings and called it a day).
There are a lot of interesting things in your config : C-Space as the prefix sounds like a really good idea and being able to use C-HJKL to move from a Neovim split to a Tmux pane is a gamechanger.
I've still no idea when I'll be able to try this out but it sure seems like you've made me save a lot of time. o/

Maxelya
Автор

Thanks for this! I'm actually coming from using byobu, which is a wrapper around either screen or tmux (as in, a configuration choice). It offers a bunch of F-key bindings that I've really liked, as alternatives to using the prefix every time. Things like using F2 for creating a new vertical split, or shift+F2 for a horizontal.

Those things alone had me very hesitant to try switching to raw tmux, until I started having issues with re-attaching to sessions recently. And this video came about right in the perfect time to switch!

gunstorm
Автор

great video. What really made tmux work for me is actually to ignore most of the functionality. I basically only use sessions and windows. I never use panes, copy mode or any other features. Having this limited feature set lets me use alt as a standalone prefix key. So i can navigate between windows with alt-h and alt-l, and i can navigate between windows with alt-j and alt-k. Its so much more ergonomic than having to prefix everything, especially when you want to quickly toggle between windows or sessions

tandlose
Автор

Great video, the config looks awesome! (and damn, nice editing)

typecraft_dev
Автор

Great little video on how to configure tmux. I've been using it for years but had never gone through the effort of making it "nice". This video prompted me to do it. Even though some of the configurations that you used didn't work for me this was a great framework.

Niklaos
Автор

It would've taken me much longer to learn everything from scratch and implement this workflow, but following your method, I've now got a very sensible setup. Many thanks for sharing your hard work!

SameenIslam
Автор

I already use Tmux + neovim but still find this video useful. I didn't know about a few of the keybind changes. The change you made for copying in tmux looks very useful. Default is hard to remember because I don't use it a lot. That plugin to let you switch panes while in neovim will be great too. Thanks.

Comrade_Tux
Автор

Great video. One thing I've found useful in tmux is the ability to type into several panes at the same time. I have <prefix>-y bound to "setw synchronize-panes". This is useful for managing multiple servers where (say) I want to "sudo apt upgrade" all of them at once.

RogerLipscombe
Автор

Thank you for sharing free knowledge!
I started using tmux this year only to keep my vps' ssh sessions saved, then after little time I started using it for parallel tasks, but still only in the vps because it is headless... My local machine is running Windows and I use a lot of built-in helpers from IDE's when writing code, that leads me to lots of mouse interactivity, I didn't like much of the keybindings in tmux and was lazy to change it, after seeing this video I will try harder to use it for local terminal productivity!
Great tips and thanks again for the config copy paste! Subscribed!

edit: add comma, fix "interactivity"

AugustoFnrd
Автор

Excellent video. I learned tmux many years ago, but I didn't know about the package manager or the neat vim integration. The only thing for me is that I learned tmux by reading the book `Tmux 2` by Brian P Hogan, and I really liked his key bindings, specially I decided to change prefix from Ctrl-b to Ctrl-a and switch in my keyboard the Ctrl and Tabs keys, in that way is much faster to type the Tmux commands, also his keybindings to split the window are more mnemonic, using `<prefix> -` and `<prefix> |` to split horizontally and vertically

rayanez
Автор

i'm a nano warrior when it comes to the terminal (i develop in vscode) but pretty much all the tmux config you showed off is amazing! especially that last one to spawn panes in cwd, that will save me hours of my life xD

FunctionGermany
Автор

I had never used Tmux or Vim before stumbling across your channel. Decided to setup Tmux with Vim and use most of the settings you used in your video. Gotta say.... Tmux and Vim are very quickly growing on me. Thanks for the video and getting me into them!

EndsCreed