3 ms·
If you e.g. use LSPs or similar tools it usually is better to separate different projects into different Vims. Most of these tools rely on some kind of project
by fileeditview 3y ago
If you e.g. use LSPs or similar tools it usually is better to separate different projects into different Vims. Most of these tools rely on some kind of project root and may get confused if you have different ones opened in the same Vim instance.
I personally also like the separation and navigating my Tmux is very fast. To me Vim is the perfect editor but I don't want to use it as windowing or operating system replacement. Obviously I use tabs and windows in Vim but always only regarding the project I am working in. E.g. I use tabs for diffs a lot and reviewing.
- gloosx 3y agoThe solution is easy though, you can use :tcd to set the root dir per tab for the project tooling in this tab and I never had any issues with separate projects this way. I guess the way we operate terminal tabs and splits is just something we get used to once and never change, even if it tooling to do it starts to layer on top of each other :)
- fileeditview 3y agoYea you have a workflow and usually stick to it if it's good enough. For me I have many projects in different tmux windows and I name them to keep an overview. I am convinced that having all of this in vim would make it harder for me to find things :) But you are right.. I use splits inside Vim and with Tmux and sometimes I get confused when switching.