sponsor Vim development Vim logo Vim Book Ad

FirstEffectiveLine.vim : Go to the first effective(non-comment) line of the file

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

created by
Takahiro SUZUKI
 
script type
utility
 
description
This plugin provides a normal mode command 'gG', which moves to the first
effective line of the current file.
In this script, "effective line" means a line whose first character is
not a comment nor a preprocessor nor empty.

If you want to map the command to another keys than 'gG', add a line like below
in your vimrc.
  nmap YOURKEY <Plug>GotoFirstEffectiveLine
 
install details
Place this file in /usr/share/vim/vim*/plugin or ~/.vim/plugin/
 

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
FirstEffectiveLine.vim 1.0.0 2010-01-07 7.0 Takahiro SUZUKI Initial upload
ip used for rating: 142.132.191.50

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