perforce.vim : Perforce source control features
| script karma
Downloaded by 2684
Comments, bugs, improvements
script versions (upload new version)
|Perforce is a source control system from http://www.perforce.com
- menu and keyboard shortcuts to open (checkout), revert, and sync files.
- prompts to open a file for editing when you attempt to change a checked-in file.
- perforce status displayed on the ruler.
- tested on Windows operating systems only.
This plugin provides a relatively few commonly used commands. If you are looking for the ability to carry out many perforce commands from within vim, you may wish to look at Hari Krishna Dara's plugin (script 240) at http://vim.sourceforge.net/scripts/script.php?script_id=240.
|Place in your vimfiles\plugin directory.
Set p4editor=vim -c PerforceLaunch for use as p4 forms editor.
Click on the package to download.
ip used for rating: 22.214.171.124
||Extensive enhancements by Suresh Srinivasan:
Added a set of changelist commands ('' indicates the leader character):
\v - Show list of versions of the file.
\u - Show unified diff of the file.
\z - Show diff between specific versions of the file.
\p - Show depot version of file.
\a - Show depot version of file with annotations (revision# for each line).
\x - Mark file for delete.
\C - Create new changelist.
\D - Show diff of all files in a changelist.
\F - Show list of files in a changelist.
\L - Show list of pending changelists.
\X - Delete a changelist.
\S - Submit current changelist.
\I - Show changelist info.
\h - Show Help message.
\l - Login into perforce.
\\ - Show general perforce info (license, location, etc.).
Status line message now includes the changelist number.
||Useful enhancements made by Terrance Cohen:
- Added P4DiffFile() option
- "[Not in p4]" appears on ruler instead of "0"
- Added defaults to confirmation dialogs so user can just hit enter or
escape... no need to find a hotkey. Revert defaults to 'No', others
default to 'Yes'.
- Changed icons in confirmation dialogs to question
- Rephrased confirmation texts to make them easier to parse quickly
||- fixed bug where cursor position within a line was not always maintained across p4 operations on the file.
- sped up "p4 edit" operation -- it now uses two shell commands instead of three.