sponsor Vim development Vim logo Vim Book Ad

Arrow Key Repurpose : A plugin for repurposing the arrow keys mostly for shifting lines of text around

 script karma  Rating 0/0, Downloaded by 866  Comments, bugs, improvements  Vim wiki

created by
Tim Holt
 
script type
utility
 
description
A plugin-ification of  the older version of vimtip #1066, with a couple modifications and added documentation.

Many consider it a best practice not to use the keyboard’s arrow keys for movement. New users are usually encouraged to use hjkl instead. vimtip #1066 recommends re-mapping the arrow keys’ functionality rather than letting them go to waste.

This is a plugin implementation of that tip—in short, the arrow keys now shift lines around by manipulating indentation and blank lines—with modifications from around the web and personal additions, along with documentation.
 
install details
There are currently two recommended ways to install this plugin, though other
plugin managers are likely easily adapted:

Pathogen:

Navigate to your bundle directory. By default, this will be something like
“~/.vim/bundle”.

Then decompress the downloaded file into its own folder, or run the command:

    “hg clone https://bitbucket.org/atimholt/arrowkeyrepurpose

(minus the quotes)

NeoBundle:

Add this line to your vimrc (minus the quotes), under the conditions described
by the NeoBundle documentation:

    “NeoBundle 'bb:atimholt/ArrowKeyRepurpose', {'type': 'hg'}”
 

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
arrowkeyrepurpose_1.0.tar.gz 1.0release 2014-04-17 7.0 Tim Holt Fixed bugs & works properly with visual selections & folded text. Added user settings. Sorry about the version number confusion.
arrowkeyrepurpose.1.0.0.tar.gz 1.0.0 2014-03-19 7.0 Tim Holt Initial upload
ip used for rating: 3.145.60.29

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