Based on what Vim detects you are running, allows for Unix or WinNT based Clearcase. Script will setup command-line abbreviations to shortcut checking-in/out, uncheckout, list checkouts (current directory, recurse directories, or all vobs), list version history. Also sets up a Clearcase Menu if you are running a gui version of Vim, which provides the same operations.

install details

Vim 6.x: Make sure to download the correct (new) version.

Version 1.36 and later:
Only one file, ccase.vim, and documentation is self installing the first time that VIM is started after putting ccase.vim in your plugin directory.

Versions 1.35 and prior:
Unpack the tar'ed and gzip'ed file in your ~/.vim directory, the files will go into plugin/ccase.vim and doc/ccase.txt.

My changes:
Add User commands for all the regular cabbrevs used, so that diff commands and others may be issued on the command line with '-c'.

Changes from Gary Johnson and WEN Guopeng:
Addition of a diff with first version on this branch.

Stefan Berglund and WEN Guopeng:
Alter 'ctpwv' to not use the $view variable, and instead get it from the system.

Changes from WEN Guopeng:
Changes to embed the ccase.vim documentation in the .vim file, and automatically install on startup, diff with merged version, and other wonderful addititions that I'm probably forgetting.

- Added variable for listing checkouts by anyone, or just 'me'.
- Added save of comment text into global var so it is accessable across
starts and stops of vim.
- Replaces some echo's with echomsg's so they are saved in vim err list.
- Moved autocmds around, so buffer-local kemaps aren't lost by the
autocmds which automatically refresh the listing upon BufEnter.
- Added uncheckout functionality into Vim function instead of relying on
shell to do it.
- MakeActiv now prompts for an activity comment.
- Activity functions no show the activity comment, including the
activity list window.
- For the activity and checkout list windows, open new files below and
to the right of the originating list window.
- Added check for maps of <unique><script> already being there so
resourcing the plugin doesn't give errors.

Incorporated Guillaume Lafage's changes for link resolution and
improvements for the 'list checkouts' and 'list activities' windows.
Now double-click or Enter on a name in the list checkouts window will split-open that file, and double-click or Enter on an activity will set the current activity to be that of the activity under the cursor.
Some updates to the help file, added a thanks section to recognize those who have contributed to ccase.vim (thanks
everyone, I'm still open to more suggestions).

Added buffer local settings to set the current activity, and update the
checkout list window on BufEnter. Also added ability to create an UCM
activity (mkactiv). See updates to the documentation (:h ccase-plugin).

Implemented suggestion (ok, call it enhanced from his patch), such that the
ctpdif and ctqdif functions work properly when the filename you were editting
was a fully version qualified ClearCase name (ie. filename@@/main/my/version/1).
This is likely to happen if you open a specific file version via the ClearCase
file browser or version tree browser.

Small correction to use of variables local to the function (l:), not local
to the script (s:).

After several comments on the possible naming collision of the ccase results
file, I've changed the implementation so that it uses a generated filename for
the temp file that captures command output (via tempname()), and now use a
special buffer to display the results.

Per suggestion by Gerard van Wageningen, added prompt box capability as well as
vim console prompt capability for checkin and checkout comments. If using the
GUI version and g:ccaseUseDialog is set to 1 (default) then the gui prompt box
will pop up for the comment to be added to the checkin/out. If g:ccaseUseDialog
is set to 0, then prompt will be of the console variety.

Added 'mkelem' functionality. Function to make current file an element prompts to checkout directory if it is not already checkedout, adds file (not left checkedout), and prompts for whether directory is to be checked in again.