4 ms·
If you use vim + tmux this plugin[0] is super handy. It allows ctrl-h|j|k|l to switch between tmux or vim splits so you don't have to know whether it's a differ
by dickeytk 7y ago
If you use vim + tmux this plugin[0] is super handy. It allows ctrl-h|j|k|l to switch between tmux or vim splits so you don't have to know whether it's a different terminal window or a vim split—just that you want to go right (for example).
[0] https://github.com/christoomey/vim-tmux-navigator https://github.com/christoomey/vim-tmux-navigator
- artificialLimbs 7y agoAs a new~ish vim/tmux user, thank you. I stopped using vim splits because tmux.
- opan 7y agoYou can easily copy stuff between vim splits, though. The window movements can also be part of vim macros. I have a couple macros that will assume I'm on the left window, make a change to the right window, save the file, and return me to the left side. I also have one to delete the second line from two side-by-side files for playlist management. At one point I used several vim instances in tmux panes, but only because I hadn't learned of vim's own advanced features.