Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim 通过按-displays";在:Gstatus窗口中切换文件;按ENTER键或键入命令继续;消息_Vim_Vim Fugitive - Fatal编程技术网

Vim 通过按-displays";在:Gstatus窗口中切换文件;按ENTER键或键入命令继续;消息

Vim 通过按-displays";在:Gstatus窗口中切换文件;按ENTER键或键入命令继续;消息,vim,vim-fugitive,Vim,Vim Fugitive,我尝试了我发现的一切,但没有成功地摆脱了这条信息 如果我将cmdheight设置为>1,则会进行一些切换,然后再次显示可怕的消息。(我可以将cmdheight设置为例如3,以防止出现这种情况,但是命令行看起来很难看) 我试图通过检查:文件找到使其显示消息的消息值: ".git/index" [Not edited][RO] line 10 of 10 --100%-- col 1 我想这应该不是问题 我还检查了:v:scrollstart变量: 1 # On branch master 2 #

我尝试了我发现的一切,但没有成功地摆脱了这条信息

如果我将cmdheight设置为>1,则会进行一些切换,然后再次显示可怕的消息。(我可以将cmdheight设置为例如3,以防止出现这种情况,但是命令行看起来很难看)

我试图通过检查
:文件找到使其显示消息的消息值:

".git/index" [Not edited][RO] line 10 of 10 --100%-- col 1
我想这应该不是问题

我还检查了
:v:scrollstart
变量:

1 # On branch master
2 # Your branch is ahead of 'origin/master' by 1 commit.
3 #
4 # Changes not staged for commit:
5 #   (use "git add <file>..." to update what will be committed)
6 #   (use "git checkout -- <file>..." to discard changes in working directory)
7 #
8 # modified:   zshrc
9 #
10 no changes added to commit (use "git add" and/or "git commit -a")
分支主机上的
1#
2#您的分支比“原始/主分支”早1个提交。
3 #
4#未为提交而进行的更改:
5#(使用“git add…”更新将提交的内容)
6#(使用“git签出--…”放弃工作目录中的更改)
7 #
8#修改:zshrc
9 #
10提交时未添加任何更改(使用“git add”和/或“git commit-a”)
可能是这样,但我不确定


谢谢。

我想这是钥匙。尝试:

:nnoremap - :<C-U>silent! execute <SNR>20_StageToggle(line('.'),line('.')+v:count1-1)<CR>
:nnoremap-:silent!执行20_阶段切换(行('.')、行('.')+v:count1-1)
如果这解决了它,您将需要使用相应的更改更新sapivor.vim

除此之外,您还可以使用调试模式

:debug execute <SNR>20_StageToggle(line('.'),line('.')+v:count1-1)
:调试执行20_阶段切换(行('.')、行('.')+v:count1-1)

最后,看看文件(特别是.git/index或.git/index.lock)是否可以访问和写入。

我想这是密钥绑定。尝试:

:nnoremap - :<C-U>silent! execute <SNR>20_StageToggle(line('.'),line('.')+v:count1-1)<CR>
:nnoremap-:silent!执行20_阶段切换(行('.')、行('.')+v:count1-1)
如果这解决了它,您将需要使用相应的更改更新sapivor.vim

除此之外,您还可以使用调试模式

:debug execute <SNR>20_StageToggle(line('.'),line('.')+v:count1-1)
:调试执行20_阶段切换(行('.')、行('.')+v:count1-1)

最后,查看文件(尤其是.git/index或.git/index.lock)是否可访问和写入。

谢谢。我最终向提交了一个问题(以及建议的修复)。谢谢。最后,我将一个问题(以及建议的修复)提交给了。