“讲好中药故事”系列报道开启 首站将走进太极集团
百度 ——卓嘎代表(西藏隆子县玉麦乡牧民)政策越来越好,干劲越来越足。
Questions about the integration of the Git revision control system in Vim or about the synchronisation of Vim files via Git repositories.
14 questions with no upvoted or accepted answers
4
votes
1
answer
263
views
Check for diff mode while using git mergetool
I am using Neovim v0.10.0 and have the following config for git difftool:
[diff]
tool = nvimdiff
[difftool]
prompt = False
trustExitCode = true
[difftool "nvimdiff"]
cmd = ...
4
votes
1
answer
259
views
How to use different rules for highlighting trailing whitespace inside a gitcommit diff?
In my ~/.vimrc, I have:
highlight TrailingWhitespace ctermbg=blue
autocmd BufReadPost * syn match TrailingWhitespace /\s\+\%#\@<!$/
This highlights trailing spaces, except when I am still typing ...
2
votes
0
answers
425
views
vim-fugitive support for diff --color-words
I use vim and git primarily for editing prose documents in LaTeX or Markdown, not for coding. For this reason, my go-to git diff command is git wdiff, where the relevant part of .gitconfig reads
...
2
votes
0
answers
657
views
Why does Git think Vi quit in error?
Is there anything wrong with opening up a new vim tab (for scratch work) while authoring a git commit?
Update: This Seems to Be a Quirk With Vi vs. Vim
On further inspection prompted by @muru's ...
2
votes
0
answers
93
views
Mvimdiff launches with vertical split on far right
I'm trying to integrate mvimdiff into my workflow - but when I launch it via:
git difftool <filename>
I'm getting a wonky layout like this:
_________________________
| | |
...
1
vote
0
answers
117
views
Any vim plugins to integrate git status for each file in file window explorer?
is there any vim plugins could show git status for each file in file window explorer?
Please notice that I am not asking integrate git status in statusline, but in file explorer like nerdtree/defx, ...
1
vote
0
answers
54
views
Folding for git merge candidates is (at least to me) backwards
When viewing a merge candidate created by git you will have something like
. . .
Some stuff not in conflict
<<<<<< HEAD
Some stuff
======
Something different
>>>>>...
1
vote
0
answers
242
views
How fugitive-specific is the 'git' filetype?
When you run fugitive's :Gblame, it opens a buffer whose 'filetype' is fugitiveblame. You can hit q to close its window. You can also hit o to view the commit for the line your cursor is on in a ...
0
votes
0
answers
54
views
How do I gray out .gitignore with telescope?
The behavior I have now is that all files and folders specified in Telescope are not shown at all while I use NVChad. Is there a way to gray them out instead, so I can still see them, but just give ...
0
votes
1
answer
53
views
Go to last changed line when opening file
When I open a file with unstaged changes it would be ideal for me to automatically jump to to them, I currently use GitGutterNextHunk from airblade/vim-gitgutter.
Also as a bonus, I would also like to ...
0
votes
0
answers
36
views
Cannot run file in ftdetect folder using Vundle
I am using Vim 7.4 on Linux with Vundle and Git. I am writing my own plugin called potion (following an example in the book LEARN VIMSCRIPT THE HARD WAY by Steve Losh) that is stored in my GitHub ...
0
votes
1
answer
477
views
Use LspConfig root_dir in Neogit cwd
I'm trying to setup Neogit to open in my workspace directory instead of cwd. The problem is that I use multi root workspaces, so I usually set my cwd to be workspace1/... My initial try was to use ...
0
votes
1
answer
192
views
Working with multiple git branches of Neovim config
I am working with multiple NVim configs through multiple git branches but it appears to be broken like it doesn't update the config after I switch branch and restart Neovim. Restarting my computer ...
0
votes
0
answers
801
views
Review two branches
description
I like the fugitive :Git to review uncommitted code.
I would like to do same between branches + uncommitted code. Basically to locally review MR or PR.
From fugitive there are :Gclog and :...