skill_comment.vim : After pair of brackets auto-add starting keyword in the comment
script karma |
Rating 8/5,
Downloaded by 1217 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Andy Wokula |
|
script type |
ftplugin |
|
description |
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.
Example:
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 |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|