sponsor Vim development Vim logo Vim Book Ad

skill_comment.vim : After pair of brackets auto-add starting keyword in the comment

 script karma  Rating 8/5, Downloaded by 1068  Comments, bugs, improvements  Vim wiki

created by
Andy Wokula
script type
Vim filetype plugin enhancement
Language: skill (cadence extension language)

Type ");" in Insert mode to insert the word located before the matching "(".
For selected keywords this also adds the argument (following the keyword).
To work properly, keyword and argument must be found on the same line.


procedure( vscCheckpointHier( @key lib cell view message inclibs )
    let(( ddCVs )
        vscPrint0(sprintf( nil "Hierarchy for %s,%s,%s ..." lib cell view ))
        when( ddCVs = vscGetHierarchyDDs( ?lib lib ?cell cell ?view view
                                          ?inclibs inclibs )
            vscPrint0(sprintf( nil "  %d cellviews." length(ddCVs) ))
            vscCheckpoint( ddCVs ?message message)
        ); when ddCVs
    ); let
); procedure vscCheckpointHier
install details
Copy the file to  ~/.vim/ftplugin  -- or  vimfiles\ftplugin (Win)

How come ...?
Vim will detect that the script belongs to the skill filetype, because the
filename matches "skill_*.vim".

Make sure your vimrc contains
    filetype plugin on
else the script won't be loaded automatically.

2007 Oct 10

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
skill_comment.vim 4 2007-05-17 7.0 Andy Wokula Initial upload
ip used for rating:

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.