sponsor Vim development Vim logo Vim Book Ad

LineMotion : a Vim Plug-in, move fast in linei of text.

 script karma  Rating 2/5, Downloaded by 496  Comments, bugs, improvements  Vim wiki

created by
Handsome Cheung
 
script type
patch
 
description
LineMotion provides a simpler and fast way to move in line of text.

Only two method of movement - Lright() and Lleft() in LineMotion. When the method is triggered first, the cursor will move right/left to the middle ofthe line. And next it move a half of last distance of movement when triggered.

By default, there is no key binding. Because I konw that the default binding is suitable to my own taste, and the default binding may conflict with other plugins you may have installed. Of course, it's easy to set the key binding by which movement method is triggered, just put the following statement(ifmy taste is suitable for you) in your vimrc:

nmap <leader>l :Lright<cr>
nmap <leader>h :Lleft<cr>

Make sure you already put the statements in your vimrc as above.

Type <leader>l to move the cursor to the middle of the line. If the target you wanna move to is right of the cursor, type <leader>l again. Otherwise, type <leader>h. It's easy to use, isn't it?

The project page of LineMotion is here: https://github.com/handsomecheung/vim-linemotion
Please report any issues here: https://github.com/handsomecheung/vim-linemotion/issues
 
install details
Decompress the tar ball you download, and put the linemotion.vim in ~/.vim/plugin/ .

Besides, LineMotion is compatible with pathogen!
 

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
vim-linemotion.zip 0.0.1 2012-06-25 7.0 Handsome Cheung Initial upload
ip used for rating: 3.133.146.143

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