2013-05-22 15 views
3

我使用了:Gstatus並可以看到狀態窗口。我如何直接跳轉到表示文件已被修改的行。跳轉到使用以下內容時說'修改...'的行:Gstatus在vim-immgitive

# 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 ......這一行。

+2

[閱讀文檔](https://github.com/tpope/vim-fugitive/blob/master/doc/fugitive.txt#L33)? – romainl

回答

4

如何只按:

/modi<enter> 

,或者如果您已激活相對行號,你可以只按5j

編輯

如果你的意思是在逃亡的快捷鍵映射,嘗試<C-N>在GSTATUS緩衝。

+0

我記得,它有一個或兩個按鍵快捷鍵。 –

+0

@aksharraaj見編輯 – Kent

6

:help Gstatus說,它的

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

爲下一個和以前的文件。也許這是它?