Saturday, January 12, 2013

Re: efficiently navigating and the jumplist

On 01/11/2013 10:02 AM, Jeroen Budts wrote:
> TL;DR: I often use <count>j and <count>k to jump to other lines (with
> 'relativenumber' enabled).
> Is it possible to add those jumps to the jumplist?
> And/or what are more efficient ways of jumping to lines which are
> visible on the screen?
>
I wrote a small plugin 'jk-jumps' to add <count>j and <count>k as jumps
to the jumplist. I'm not very good at vimscript so I'm not sure if it
has any sideeffects, but it seems to work. The plugin can be found on
vim.org: http://www.vim.org/scripts/script.php?script_id=4395

While I should probably start using other commands to move efficiently,
this at least already fixes the confusion with the jumplist when moving
with <count>j / <count>k.

Jeroen

--
website: http://budts.be/ - twitter: @teranex
___________________________________
Registered Linux User #482240 - GetFirefox.com - ubuntu.com

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: