eb是什么
百度 五是带头推动党中央决策部署贯彻落实。
Questions about the integration of the Git revision control system in Vim or about the synchronisation of Vim files via Git repositories.
95 questions
1
vote
3
answers
170
views
How develop a vim plugin repository, live testing it, making proper use of git?
I have come across the following problematic: How to develop a Vim plugin using a local repository, while you are at the same time testing its changes, doing commits and so forth.
So in my case I'm ...
2
votes
2
answers
184
views
How to select all lines containing a string, then do a search and replace on them?
I want to squash or drop a lot of commits during a rebase. Those commits have messages that start with TEMP, e.g.:
pick 123456 TEMP: test1
pick abcdef TEMP: test2
pick asdfgh TEMP: test3
I want to ...
1
vote
3
answers
347
views
How to pass the current line number to a shell command as an argument?
I need to get information about the last person who edited the file, so I use git blame to achieve this. All I need is to run git blame -L X,Y and have it pasted in the Vim window.
If I attempt one of ...
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
216
views
Looking through previous file versions and restoring hunks?
I want to be able to see a list of previous versions of a file in a git repo, select one of them to see a diff, and choose which parts from that version I want to restore, something like git checkout -...
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 ...
-2
votes
1
answer
133
views
Cannot install plugins using Vundle and Git v1.8.3.1
I am running the :PluginInstall command with Vundle (Vim version 7.4) and attempts to run :PluginInstall will (try to) run a command like the following:
git clone --depth 1 --recursive --shallow-...
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 = ...
0
votes
1
answer
475
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
224
views
How to configure git config to use MacVim and zsh to use Vim bundled in MacVim?
The following is an excerpt of my .gitconfig
[core]
editor = mvim
autocrlf = false
pager = less -FX
commentchar = "#"
[diff]
tool = vimdiff
guitool = vimdiff
[merge]
...
2
votes
1
answer
610
views
Show git branch icon in lightline
Here is my code from .vimrc but is not showing any icon near the branch name
I'm using
Plug 'itchyny/lightline.vim' " Lightline UI
Plug 'tpope/vim-fugitive' " Git wrapper for Vim
Plug '...
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
1
answer
1k
views
How to recover file changes discarded with fugitive_X in the fugitive summary buffer?
In the fugitive summary buffer, the powerful X command does as explained in :help fugitive_X:
Discard the change under the cursor. This uses checkout or clean under the
hood. A command is echoed ...
0
votes
1
answer
66
views
Automatically `git add` after conflicts are resolved in vim
Coming from Spacemacs, one of the things that I miss is that files are automatically git added after all conflicts are resolved. Wondering if there's a way to do that in vim.