Skip to content

teranex/jk-jumps.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

*jk-jumps.txt*  Handle movements with j/k as if they were real jumps

Author:  Jeroen Budts <http://budts.be>
Repo:    https://github.com/teranex/jk-jumps.vim
License: Same terms as Vim itself (see |license|)

SUMMARY                                         *jk-jumps*

You can easily use the |j| and |k| commands together with a count to jump up
and down your file. Setting the |'relativenumber'| option makes this even
easier. The only problem with this, is that Vim doesn't think of this kind of
movement as 'jumps'. (see |jump-motions| for the list). This can make using
the |jumplist| rather confusing.
This plugin tries to fix that by changing the j and k commands to act as
jumps, letting you use the jumplist to jump back and forward.

OPTIONS                                         *jk-jumps-options*

For the moment there is only one option:
                                                *'g:jk_jumps_minimum_lines'*
This options determines what the minimum amount of lines is before a movement
is considered a jump and added to the |jumplist|: >
    let g:jk_jumps_minimum_lines = 7
<

vim:tw=78:et:ft=help:

About

Handle movements with j/k as if they were real jumps

Resources

Stars

Watchers

Forks

Packages

No packages published