Jump to the line which says `modifed...` while using :Gstatus in vim-fugitive

StackOverflow https://stackoverflow.com/questions/16686980

  •  30-05-2022
  •  | 
  •  

سؤال

I used :Gstatus and can see the status window. How do I directly jump to the line which say that a file has been modified.

# 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")

I am on the first line and want to jump to the line which says modified .......

هل كانت مفيدة؟

المحلول 2

how about just pressing :

/modi<enter>

?

or if you have activated relative linenumber, you could just press 5j

edit

if you meant the shortcut mapping in fugitive, try <C-N> in that Gstatus buffer.

نصائح أخرى

:help Gstatus says its

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

for next and previous files. Maybe this is it?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top