sponsor Vim development Vim logo Vim Book Ad

sbutils : Some utilities I find useful

 script karma  Rating 11/5, Downloaded by 1230  Comments, bugs, improvements  Vim wiki

created by
sapan bhatia
 
script type
utility
 
description
This is a collection of utilities that i will be updating regularly. I'm putting it online just in case somebody wants exactly what's there, if you're just browsing, you should probably skip this version.

Starting with 2 utils:

1. Count the no. of occurences of a -PERL- regex in a range ( :<range>Count <regex>)
2. Insert a timestamp, formatted according to a time-format string at the current cursor position in the command mode ( <Leader>t) where <Leader> is usually ''
3. Comment a block of C-code by selecting a range and hitting <Leader>C - it replaces /* and */ inside with {{{ and }}} to cope with nested comments.

 
install details
Source from ~/.vimrc (:source sb.vim)
 

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
sb.vim 0.11 2003-08-24 6.0 sapan bhatia New util:
To select a range and put it within C comments, replacing internal /* and */ with {{{ and }}} to cope with nesting (well, i find it useful:)
sb.vim 0.1 2003-08-22 6.0 sapan bhatia Initial upload
ip used for rating: 18.188.252.23

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