VIM: Jump Back To Previous or Last Cursor Position

VIM: Jump Back To Previous or Last Cursor Position

To jump back to the previous or last cursor position in VIM, you can use the Ctrl+O key.

The Ctrl+O key is a shortcut that allows you to jump back to a previously visited cursor position in the current file. When you press Ctrl+O, VIM will jump back to the last cursor position that you visited before the current position, and you can use the Ctrl+O key repeatedly to jump back through the cursor positions that you have visited.

For example, if you are editing a file in VIM and you move the cursor to different positions in the file, you can use the Ctrl+O key to jump back to the previous cursor positions.

It is important to note that the Ctrl+O key only works within the current file, and does not allow you to jump to cursor positions in other files.

For more information about the Ctrl+O key and other navigation shortcuts in VIM, you can consult the VIM documentation or search online for more information.

Created Time:2017-10-30 14:27:31  Author:lautturi