Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add smart pain switching with awareness of vim splits. #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add smart pain switching with awareness of vim splits. #17

wants to merge 1 commit into from

Conversation

Traap
Copy link

@Traap Traap commented Nov 14, 2020

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.

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
Copy link
Author

Traap commented Nov 14, 2020

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
Copy link
Author

Traap commented Nov 15, 2020

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

@ThePrimeagen
Copy link
Collaborator

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

Sorry It took me this long :)

@Traap
Copy link
Author

Traap commented Mar 14, 2021

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.

@fabOnReact
Copy link

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

@Traap
Copy link
Author

Traap commented Mar 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants