Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support vi's ''/`` (jump to position before last jump) #137

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rctay
Copy link
Contributor

@rctay rctay commented Jun 26, 2012

This is done through a refactor of ViSetBookmark.

@abrookins "goto last edit" (pull #111) is then rewritten based on this refactor. The behaviour of './.is slightly tweaked:'./. still jumps to the last edit, as pull #111 does, but to jump back, the new ''/``` is used, instead of './. in pull #111. This is closer to vi's behaviour.

PS. accepting this pull request implicitly merges pull #111.

abrookins and others added 8 commits April 4, 2012 21:42
 - ViRecordLastEdit saves the position of edits the user makes, in
   settings

 - ViGotoLastEdit jumps to the position of the last edit in a view and
   stores the original cursor position

 - If the user is at the position of the last edit and hits `'.`, ViGotoLastEdit jumps
   back to the original position
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants