sponsor Vim development Vim logo Vim Book Ad

bwHomeEndAdv.vim : This script enhances the <Home> and <End> in both normal mode and insert mode

 script karma  Rating 5/4, Downloaded by 763  Comments, bugs, improvements  Vim wiki

created by
Bruce Who
 
script type
utility
 
description
Description:
  This script enhances the <Home> and <End> key in both normal mode and
  insert mode.

  <Home> is enhanced to behave like in Visual C++, you can use <Home> to
  jump between the first column and the first non-space character of a
  line.

  Besides, <End> is also enhanced and can be used to jump between the last
  column and the last non-space character of a line.
 
install details
Drop the script to your plugin directory.
 

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
bwHomeEndAdv.vim 1.3 2005-08-25 6.0 Bruce Who - Bug fix: After Entering VIM, and press <End> for the first time while the cursor is already at the end of the line, an error occurs.
- add <silent> to each mapping to make it behave like normal <Home> & <End>.
Thanks to Andrzej Zaborowski who reported the bug and gave me a patch, and also gave me the suggestion.
bwHomeEndAdv.vim 1.2 2005-07-24 6.0 Bruce Who Initial upload
ip used for rating: 3.145.186.173

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