Friday, December 2, 2011

Re: jumping position -> jumplist, CTRL-O + CTRL-I

* shawn wilson <ag4ve.us@gmail.com> [2011-12-02 16:23]:
> is there a way to go back to the previous position in a file?
> something like a history for the cursor position?

yes.. see ":help jump-motions" for
":help CTRL-O" and ":help CTRL-I".

> i generally put markers in files when i'm looking for
> things, but sometimes forget to do 'ma', 'mb' etc and then
> might forget what i called it, but if there was a way to
> say, go where i was in a file 4 jumps ago (by jumps, i
> mean 'gd', ':-100', '/blah', etc) that would be cool

easy: 4<c-o>

you can also have the jumplist saved to a session file
so it will all be available again after the next startup.

enjoy vim!

Sven

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: