awesome-streamerrc icon indicating copy to clipboard operation
awesome-streamerrc copied to clipboard

Add smart pain switching with awareness of vim splits.

Open Traap opened this issue 4 years ago • 6 comments

Move between vim splits and tmux pans with the same keybingind.

The c-h,j,k,l are expeted to be the same pane or split movement keybinginds.

Traap avatar Nov 14 '20 07:11 Traap

I watched your YouTube technology tip series. I've been using vim and tmux since January 2015. My repository https://github.com/Traap/tmux has a well documented .tmux.conf file. I spent several days and hours scouring the web to piece it together. Using the same keybinding to move any direction between vim splits and tmux panes was appealed to me because it reduced cognitive load while I am typing. I just want to move to next split or pane.

Typing ctrl-w+l and tmux crtl-b+l = No Coconut Oil! Typing ctrl-l from tmux or vim = 110% Pure Virgin Coconut Oil!

Traap avatar Nov 14 '20 08:11 Traap

Two excellent vim-tmux plugins written by Chis Toomey. Both are documented well. I have used both from vim and nvim.

  1. Tmux runner: https://github.com/christoomey/vim-tmux-runner
  2. Tmux navigator: https://github.com/christoomey/vim-tmux-navigator

Traap avatar Nov 15 '20 14:11 Traap

@Traap this is incredible. Let me try it out for a bit and i'll let you know

Sorry It took me this long :)

ThePrimeagen avatar Feb 03 '21 17:02 ThePrimeagen

Christ Toomey has added a tmux plugin that simplifies .tmux.conf.

set -g @plugin 'christoomey/vim-tmux-navigator'

Bam! All done.

tmux-vim-nvim-maddness

The screen shot is tmux with a vertical split. Left side is vim and right side is neovim.

Traap avatar Mar 14 '21 02:03 Traap

https://thoughtbot.com/upcase/videos/tmux-vim-integration

fabOnReact avatar Mar 14 '21 09:03 fabOnReact

@fabriziobertoglio1987 - I've been using Toomey 's two plugins several years now. Great work.

Traap avatar Mar 15 '21 21:03 Traap