Skip to content

peterhost/PreciseJump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3437

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

About

Precise jump - script to ease motion within a line.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%