neovim with fugitive plugin, is it possible to open file, and open in new window panel…
- User
neovim with fugitive plugin, is it possible to open file, and open in new window panel same file, but from other branch to view it changes?
- Assistant
Yes, you can use Neovim with the Fugitive plugin to view the same file from different branches side by side. Here's a step-by-step guide on how to achieve this:
-
Open Neovim and load your Git-managed project.
-
Open the file you are interested in from the current branch.
-
Use Fugitive's
:Geditcommand to open the same file from a different branch in a new window. First, split the window either horizontally or vertically, depending on your preference:- For a horizontal split, use
:split:vim:split - For a vertical split, use
:vsplit:vim
- For a horizontal split, use
-