sponsor Vim development Vim logo Vim Book Ad

line-based_jump_memory.vim : Allows to quickly return to the original position after a jump on the line

 script karma  Rating 4/1, Downloaded by 900  Comments, bugs, improvements  Vim wiki

created by
Douglas Augusto
 
script type
utility
 
description
It marks the current cursor position just before a line-based jump command is pressed (e.g. $, w, f, ;, <Home>, etc.). Hitting CTRL-O (or `' or ``) will put the cursor back to its original position. It works for both normal and insert mode line-based commands.
 
install details
Copy the line-based_jump_memory.vim file into Vim's plug-in directory (usually $HOME/.vim/plugin/ or something like that).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
line-based_jump_memory.vim 0.2.1 2011-01-07 7.0 Douglas Augusto Fixes the proper handling of the double-quote char (") argument in the commands f,t,F,T.
line-based_jump_memory.vim 0.2.0 2011-01-07 7.0 Douglas Augusto - Fixed the plug-in file name.
- Added two user-configurable variables: (i) The minimum character motion (distance) needed to produce a mark; (ii) Whether a jump that exits the current line is going to be marked or not.
- Support for mouse click jumps.
- Code reorganization, improvements and clean up.
line-based_jump_list.vim 0.1.0 2011-01-05 7.0 Douglas Augusto Initial upload
ip used for rating: 18.191.216.163

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github