sponsor Vim development Vim logo Vim Book Ad

ASP maps : Maps to facilitate coding in ASP

 script karma  Rating -2/2, Downloaded by 1137  Comments, bugs, improvements  Vim wiki

created by
Ariel Arjona
 
script type
ftplugin
 
description
Based intially on Gavin Sinclair's Java script (vimscript #266), these are mappings to facilitate coding in VBScript ASP.

Examples of use:

To get:
<%
Response.Write "SomeText"
%>
In insert mode you type:
,%,r,wSomeText

To get:
If Trim(Request.QueryString("option")) then
End If
In insert mode you type:
:i<Ctrl+f>t,R,qoption

You have:
strOption = Request("option")
And you want:
strOption = Trim(Request("option"))
You mark Request("option") in visual mode and press <Ctrl+f>t



I will be adding more soon.
 
install details
just drop the file in your ftplugin dir.
 

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
aspvbs.vim 0.3 2002-07-17 6.0 Ariel Arjona * Added more flow control statements
* Added more visual selection wrapping of VBScript functions
aspvbs.vim 0.2 2002-07-15 6.0 Ariel Arjona Added wrapping of VBScript functions such as Trim() around visually selected text.
aspvbs.vim 0.1 2002-07-11 6.0 Ariel Arjona Initial upload
ip used for rating: 18.216.190.167

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