vim - 在使用 :Gstatus in vim-fugitive 时跳转到显示 `modifed...` 的行

标签 vim vim-fugitive

我使用了 :Gstatus 并且可以看到状态窗口。如何直接跳转到文件已被修改的行。

# On branch refactor-modeldatasource
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   graphos/sources/model.py
#
no changes added to commit (use "git add" and/or "git commit -a")

我在第一行,想跳到写着 modified ...... 的那一行。

最佳答案

:help Gstatus 说它的

                    <C-N> next file
                    <C-P> previous file

用于下一个和上一个文件。也许是这样?

关于vim - 在使用 :Gstatus in vim-fugitive 时跳转到显示 `modifed...` 的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16686980/

相关文章:

python - Vim 搜索 : avoid matches within comments

vim - 如何使用连接 - 来完成关键字补全单词?

vim - 使用鼠标选择时禁用 Macvim 滚动

linux - 如何在 vim-fugitive 插件中更改 Gdiff 的配色方案?

windows - 安装 fugitive.vim 插件后,Vim 在 Cygwin 下启动非常慢

git - 显示 vim-fugitive 中提交更改的文件的交互式列表

function - vim脚本(clang_complete)如何完成功能、模板?

git - 我怎样才能区分两个分支与 Fugitive ?

vim - 第 16 章 "learn vimscript the hard way"中的示例