Skip to content

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

Open
rctay wants to merge 8 commits into
sublimehq:masterfrom
rctay:rc/bookmark-last
Open

support vi's ''/`` (jump to position before last jump)#137
rctay wants to merge 8 commits into
sublimehq:masterfrom
rctay:rc/bookmark-last

Conversation

@rctay

@rctay rctay commented Jun 26, 2012

Copy link
Copy Markdown
Contributor

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