Подтвердить что ты не робот

Как перейти на точную последнюю точку изменения в Vim

'. может перейти к строке последнего изменения. Но мне нужно прыгнуть точно в точку.

4b9b3361

Ответ 1

Используйте `.. То есть, backtick, за которым следует точка.

Ответ 2

Как изменение имеет начало и конец, также очень полезны `[ и `]:

'[  `[                  To the first character of the previously changed
                        or yanked text.

']  `]                  To the last character of the previously changed or
                        yanked text.

After executing an operator the Cursor is put at the beginning of the text
that was operated upon.  After a put command ("p" or "P") the cursor is
sometimes placed at the first inserted line and sometimes on the last inserted
character.  The four commands above put the cursor at either end.  Example:
After yanking 10 lines you want to go to the last one of them: "10Y']".  After
inserting several lines with the "p" command you want to jump to the lowest
inserted line: "p']".  This also works for text that has been inserted.