Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump to the exact last change point in Vim

Tags:

vim

'. can jump to the line of last change. But I need to jump to the exactly point.

like image 414
Rocky Avatar asked Oct 13 '11 03:10

Rocky


People also ask

How do I jump to the last line in vim?

In short press the Esc key and then press Shift + G to move cursor to end of file in vi or vim text editor under Linux and Unix-like systems.

How do I go back to the last cursor in vim?

With the CTRL-O and CTRL-I command you can go to cursor positions before older jumps, and back again.

How do I go to previous in vim?

Ctrl + O takes me to the previous location. Don't know about location before the search. Edit: Also, ` . will take you to the last change you made. It also appears that pressing CTRL+O enough times will also start taking you back through previously opened files.

How do you go to the bottom of a file in vi?

Esc + Shift + Colon to get to the : prompt. Then type any integer and ENTER to jump to that line number or... $ to jump to the end line of the file.


1 Answers

Use `.. That is, backtick followed by a dot.

like image 118
Lifu Tang Avatar answered Sep 20 '22 11:09

Lifu Tang