【问题标题】:Jump to the line which says `modifed...` while using :Gstatus in vim-fugitive在 vim-fugitive 中使用 :Status 时跳转到“已修改...”的行
【发布时间】:2013-05-17 05:20:06
【问题描述】:

我使用了: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 ......的那一行。

【问题讨论】:

标签: vim vim-fugitive


【解决方案1】:

:help Gstatus 说它的

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

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

【讨论】:

    【解决方案2】:

    按一下怎么样:

    /modi<enter>
    

    ?

    或者如果你已经激活了相对行号,你可以直接按5j

    编辑

    如果您指的是 fugitive 中的快捷方式映射,请在 Gstatus 缓冲区中尝试 &lt;C-N&gt;

    【讨论】:

    • 我记得,有一个或两个按键快捷键。
    猜你喜欢
    • 2013-12-21
    • 2016-05-06
    • 2014-06-09
    • 2013-01-18
    • 2017-07-28
    • 2014-10-06
    • 1970-01-01
    • 1970-01-01
    • 2011-08-10
    相关资源
    最近更新 更多