sponsor Vim development Vim logo Vim Book Ad

vbs_movement : Movement over VBScript classes / functions / properties / subs with ]m etc.

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

created by
Ingo Karkat
 
script type
ftplugin
 
description
DESCRIPTION
This filetype plugin provides movement commands and text objects for Visual
Basic Script classes, functions, properties, and subs.

USAGE
                        Move around VBScript functions, properties and subs:
]m                      Go to [count] next start of a function / property / sub.
]M                      Go to [count] next end of a function / property / sub.
[m                      Go to [count] previous start of a function / property / sub.
[M                      Go to [count] previous end of a function / property / sub.

]gm                     Go to [count] next start of a class.
]gM                     Go to [count] next end of a class.
[gm                     Go to [count] previous start of a class.
[gM                     Go to [count] previous end of a class.

im                      "inner method" text object, select [count] function /
                        property / sub contents.
am                      "a method" text object, select [count] function /
                        property / subs, including the function / property / sub
                        definition and 'end ...'.

igm                     "inner class" text object, select [count] class contents.
agm                     "a class" text object, select [count] classes, including
                        the class definition and "end class"
 
install details
INSTALLATION
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vba.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
    vim vbs_movement.vba.gz
    :so %
To uninstall, use the :RmVimball command.

DEPENDENCIES
- Requires Vim 7.0 or higher.
- Requires the CountJump plugin (vimscript #3130).
 

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
vbs_movement.vba.gz 1.00 2012-04-04 7.0 Ingo Karkat 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