Тёмный

This plugin makes you a Vim and TMUX GOD 

typecraft
Подписаться 74 тыс.
Просмотров 37 тыс.
50% 1

📖Blog: typecraft.dev
🐦Twitter: / typecraft_dev
In this video I want to talk about my favorite tmux and neovim plugin. Vim tmux navigator allows you to seamlessly transition between vim and tmux panes for the ultimate IDE experience with tmux.
Also, you'll look like the coolest freaking nerd ever when you're switching around your panes all crazy and whatnot

Наука

Опубликовано:

 

11 июл 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 65   
@mahirabbas3700
@mahirabbas3700 Год назад
Thanks nerd
@ShankingDisaster
@ShankingDisaster 8 месяцев назад
bruh im so ded 🤣🤣😂😂🤣😂
@JoshMedeski
@JoshMedeski Год назад
This is one of my favorite tmux plugins, great video!
@kiyov09
@kiyov09 Год назад
I remember when I discovered this. Life changing stuff 🤯 Great video!
@RSWDev
@RSWDev Год назад
Thanks for making a short but informative walkthrough. I'll have to try this as i always forget the shortcuts for tmux.
@ascourter
@ascourter Год назад
I was lucky enough to find this early on in my tmux journey. So much less mental overhead
@rolandicus1771
@rolandicus1771 Год назад
Great video thanks. I use tmux + vim daily with two other tmux panes and switching has always been fiddly. Time to give it a try and get a level up on productivity.
@philsmith774
@philsmith774 8 месяцев назад
Thanks for highlighting this. I use vim and just started with tmux so this is really helpful.
@tiberiusvetus9113
@tiberiusvetus9113 Год назад
Yep. I've had this setup for ~5 years. Thanks for sharing.
@techdufus
@techdufus Год назад
So much YES. Thanks for the quick vid.
@tobias-edwards
@tobias-edwards Год назад
However it will stop you from using to clear the terminal
@ivanromero4154
@ivanromero4154 7 месяцев назад
I ran into this last night. Ctrl-alt l gives you the same clear screen behavior. Annoying have to re learn the bindings but I'm finding it a useful trade off
@dhupee
@dhupee 6 месяцев назад
My stuff has alias to c as clear Hehe I guess to each their own
@NilEoe
@NilEoe 4 месяца назад
Same, ended up making « cl » as alias to clear, found it’s fine
@carstenschlegel6975
@carstenschlegel6975 3 месяца назад
bind l send-keys C-L or bind send-keys C-L Thats bind l (lowercase L) or Ctrl-B (press Ctrl-B twice) to clear screen. Send-Keys version of Ctrl-L works and clears the screen. So you can use the plugins for navigation vim/tmux panes AND can easily clear the terminal.
@user-hf7ef6nm4s
@user-hf7ef6nm4s 8 месяцев назад
Hey! Great vid! How did you change your powerline prompt to be black instead of white? I have tried playing around with the powerline config, but it comes out to look more gray than black when in nested structures.
@jongdonglu
@jongdonglu 4 месяца назад
thanks just getting back into linux in a hands on way and had no idea this was a thing. this will save so much clunk.
@nmbr73
@nmbr73 Год назад
😎 ... very helpful - thanks!
@jmend
@jmend Год назад
Having used this before, I ended up removing it. Personally, approach that works better for me is running things in vim (using :term to run things in vim windows) and leaving tmux for tasks that are more long running like shells, running servers or interactive sessions. I like the compartmentalization. Also having a command/test output in a vim window makes it a breeze to do things like copy-paste, or adding notes into errors. One less plugin is always a plus too :) Furthermore, you can bind keys in tmux to trigger without the prefix, (eg. `bind -n M-j select-pane -D` to bind ALT+j to go down). Having that mental separation of CTRL+[hjkl] being vim and ALT+[hjkl] being tmux is nice.
@TheSast
@TheSast Год назад
I also personally use Alt mostly for my terminal multiplexer, but I think having the option to use ctrl bindings in this case is still good.
@TheSast
@TheSast Год назад
I actually have pushed a direct derivative of this for the tmux side, "tmux-nav-master", it provides a few more mappings and it also keeps fzf mappings (C-j & C-k).
@mjaysmileofficial
@mjaysmileofficial 11 месяцев назад
there is issue #188 in vim-tmux-navigator, I use snippet from there to keep fzf mapping
@0xc0ffee_
@0xc0ffee_ 5 месяцев назад
No more pains, just panes! 😎
@Skylla54
@Skylla54 Год назад
Yeay tmux navigator, this man has taste.
@writegoodcode
@writegoodcode Год назад
This plugin for me was a game changer, I've created custom script for all my projects, and it become's efforless to navigate between them
@CarlosRedman3
@CarlosRedman3 5 месяцев назад
Does this apply to Iterm2 ?? as I struggling when the window panes
@zehph
@zehph 7 месяцев назад
I’m used to for bom splits so I set the same for tmux but with its prefix, in my case, I’m using for one of my Harpoon files so using this didn’t make a lot of sense to me considering the remapping and relearning the mappings I’m already used to… But it is a cool tool, specially if you don’t have a big config already setup so incorporating this has no friction at all.
@editin232
@editin232 5 месяцев назад
But how do you delete last letter? When I press CTRL+h it switches to left pane instead of deleting last letter when in tmux since the terminal doesn't have insert and normal mode so it can switch panes while i'm typing. Anyone has solution?
@bombrman1994
@bombrman1994 5 месяцев назад
when im doing prefix I the install is not being triggered i dont understand why i tried following multiple authors but im stuck
@heroclix0rz
@heroclix0rz 11 месяцев назад
is there any reason someone would prefer using another tmux pane instead of just using a TERMINAL in neovim?
@typecraft_dev
@typecraft_dev Год назад
mush-mouth moment at 3:06 😆
@fabricehategekimana5350
@fabricehategekimana5350 Год назад
Yes I love this plugin ! But today I am more using the term command to run my tests and write the result in a separate buffer (so I can easely navigate like a classic vim window, copy, past, set marker etc). For instance the combination of :sp and :term can help doing the test with a simple mapping: nnoremap t :spterm [term command for the test] I am more of an old fashion vimmer that prefer extending the builtin functionnalities and separate responsibilities (vim for dev and tmux for project management). Did you try Zellij ? As I saw it has a better integration with vim for devs and I am thinking of switching one day. Thanks again for the video !
@user-td5gy2fh3p
@user-td5gy2fh3p 6 месяцев назад
this is interesting, but how do you handle the fact that vim creates a new buffer every time you run the term command? ideally, i would want the output from the terminal to be in the same buffer. that way, i don't end up having a hard time cycling through the different buffers i have opened for the files i'm working on.
@fabricehategekimana5350
@fabricehategekimana5350 6 месяцев назад
@@user-td5gy2fh3p you're right. I noticed that vim keep the memory of the previous buffers opened. I just close it and continue my stuffs but I have to admit that's not a configuration that can suit the workflow of everyone
@user-td5gy2fh3p
@user-td5gy2fh3p 6 месяцев назад
@@fabricehategekimana5350 update: i found out how to get around this issue. instead of running your program like this :term g++ main.cpp -o main you can can simply do :term directly by itself. this will spawn a terminal inside of vim. then you can use it like any other terminal to run your program. this way, every time you run your program, it won't create new buffers that then you have to manage. to be able to exit "terminal mode" you can just do this will put you in normal mode where you can then use to move to your other buffers. if you want to be able to type into the terminal again after you have gone into normal mode, simply hit "i"
@underflowexception
@underflowexception Год назад
thanks for the video, I put off doing this for awhile and finally did it after seeing how easy it was from your video. Now the next challenge is making it work with i3 so I can navigate from vim, to tmux to an i3 pane and back 😂
@typecraft_dev
@typecraft_dev Год назад
Sounds like the dream
@underflowexception
@underflowexception Год назад
@@typecraft_dev After some time with the plugins activated I noticed that CTRL+l no longer works when trying to clear the terminal for obvious reasons.. do you have any ideas on how to still be able to use this? for now I just created a bash alias "l" to clear my terminal
@underflowexception
@underflowexception Год назад
one solution might be to just remap ctrl to the windows/super key.. but need to figure that out as well lol..
@dreamsofcode
@dreamsofcode Год назад
I thought you said: "thot bot" 😂 Love this plugin! Great video, dude!
@typecraft_dev
@typecraft_dev Год назад
😂
@leg_snapper
@leg_snapper Год назад
There are also plugins that add a tiling manager layer (e.g. awesomewm-vim-tmux-navigator). So you end only using your wm navigation keybinds for everything.
@typecraft_dev
@typecraft_dev Год назад
Oh very cool!
@vaisakhkm783
@vaisakhkm783 Год назад
🥺 why did i swtiched away from awesomewm is it available for any wayland compositor?
@leg_snapper
@leg_snapper Год назад
@@vaisakhkm783 I'm only aware of a similar plugin for i3.
@vaisakhkm783
@vaisakhkm783 Год назад
@@leg_snapper :( ho... i need to check
@iyar220
@iyar220 5 месяцев назад
I personally like to keep everything in different desktops, I use bspwm and switching between screens gets blazingly fast because I always have it set up the same way
@fschlegelone
@fschlegelone 4 месяца назад
I feel like tmux is a complete overkill for what most of us need it for. But idk, maybe I just didn't get to the point where I absolutely need it yet. I just use kittys built in pane & session management features ^^
@zenmaster24
@zenmaster24 8 месяцев назад
how do you get the tests to run outside of nvim in a separate tmux panel?
@typecraft_dev
@typecraft_dev 8 месяцев назад
Magic
@typecraft_dev
@typecraft_dev 8 месяцев назад
Just kidding…. Vim-test
@RakeshTembhurne
@RakeshTembhurne 6 месяцев назад
They, thanks nerd!
@vaisakhkm783
@vaisakhkm783 Год назад
How you ran test immideatly from vim to a tmux pane?
@typecraft_dev
@typecraft_dev Год назад
This is another vim plug-in called vim-test with the “tmux” strategy
@vaisakhkm783
@vaisakhkm783 Год назад
@@typecraft_dev ho okk... there are 1000 different plugins and ways to run code in neovim, and i can't decide which one to pick, because all of them feels un intutive
@kishoregarapati1
@kishoregarapati1 Год назад
Thanks @typecraft. Copying between vim and tmux windows is also a pain. Can you make a video on it too.
@typecraft_dev
@typecraft_dev Год назад
Sure!
@DzintarsDev
@DzintarsDev Год назад
You could mention that this plugin messes up a Clear Screen and Sigquit a little bit. Without it everything work as expected. But if you want to use this plugin, you need some extra keybind trickery. But overall... nice plugin. Thou... I'm not that excited like you are. Probably I'm just too familiar wit those 2 separate layers. Thank you for sharing!
@Proferk
@Proferk 6 месяцев назад
If prefix key + hjkl is too hard -> I just configure tmux to use alt+hjkl. Quiet easy to configure.
@auntiecarol
@auntiecarol 5 месяцев назад
@2:49 "press tmux leader i"… just make sure that is capital 'I'.
@user-vc1vm9zd4y
@user-vc1vm9zd4y 4 месяца назад
Instead of using TMUX, let terminal manage its multiple sessions. Lots of modern terminals including kitty provides window management like buffers in vim.
@arsenalmagiks6955
@arsenalmagiks6955 Год назад
I have keybindings that does all this. To move through panes I simply use ctrl+space(my tmux prefix) +{hjkl}
@smoocher
@smoocher 2 месяца назад
This guy: You can easily switch between vim and tmux panes and remap your keys and do some amazing magic that will really boost your productivity. Me: You can have more than one vim pane?!? Your videos are incredibly helpful, thank you.
Далее
I tried Neovim Distributions so you don't have to
9:12
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
Smart Sigma Kid #funny #sigma #memes
00:26
Просмотров 749 тыс.
БАТЯ И СОСЕД😂#shorts
00:59
Просмотров 2,1 млн
A UX Expert Fixes My Tmux
6:58
Просмотров 70 тыс.
Tmux has forever changed the way I write code.
13:30
Просмотров 950 тыс.
Tmux will SKYROCKET your productivity - here’s how
10:02
My Forever Dev Workflow
16:02
Просмотров 78 тыс.
Making Tmux Better AND Beautiful -- here’s how
10:56
The Holy Grail of Neovim Note Taking
14:38
Просмотров 316 тыс.
NVChad - Turn Neovim Into An Awesome IDE
14:48
Просмотров 234 тыс.
Why Vim Experts Do THIS Instead of Using Tabs...
7:55
Просмотров 127 тыс.
Мой новый мега монитор!🤯
1:00
Просмотров 527 тыс.
КРУТОЙ ТЕЛЕФОН
0:16
Просмотров 7 млн
Nokia 3310 top
0:20
Просмотров 4 млн