sponsor Vim development Vim logo Vim Book Ad

PreciseJump : PreciseJump - script to ease on-screen motion.

 script karma  Rating 131/41, Downloaded by 707    Comments, bugs, improvements  Vim wiki

created by
Bartlomiej P.
 
script type
utility
 
description
PreciseJump - script to ease on-screen motion

I find
    <number>motion
not very practical for bigger <numbers>.

I usually don't know exactly how many times I want the motion to be repeated - I just see place on the screen where I want to jump to.

This script is addressing this inconvenience.

When the motion key is pressed, possible jump targets are highlighted. You just have to type character that appeared on desired place.

i.e: If you press '_fx' you get all 'x' characters that are visible in current window highlighted and changed to some unique chars. Pressing the highlighted char will quickly take the cursor to place you want.

For little demo you can see:
http://i258.photobucket.com/albums/hh246/otokan/PJ_animation.gif

Plugin definines following mappings:  
_f - jump to given char in whole window  
_F - jump to given char in a line

This script is usable right now, but keep in mind that it still is being developed.

If you have any comments, have found bugs, know how to make something better
- let me know.

Special thanks to: Filip, Adam, Sergey, John, Jim
 
install details
Unpack archive and copy PreciseJump.vim to your plugin directory and PreciseJump.txt to your documentation directory.
 

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
PreciseJump-0.49.zip 0.49 2011-03-26 7.2 Bartlomiej P. Many fixes. PJ works now in 2D (whole visible window, not only current line).
PreciseJump.vim 0.1_SOA1 2011-02-02 7.2 Bartlomiej P. Initial upload
ip used for rating: 54.226.0.225

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.
   
SourceForge.net Logo