sponsor Vim development Vim logo Vim Book Ad

perforce.vim : Perforce source control features

 script karma  Rating 61/35, Downloaded by 2684    Comments, bugs, improvements  Vim wiki

created by
Tom Slee
script type
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.
install details
Place in your vimfiles\plugin directory.
Set p4editor=vim -c PerforceLaunch for use as p4 forms editor.

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
perforce.vim 0.5 2007-06-21 7.0 Tom Slee 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.
perforce.vim 0.4 2003-09-11 6.0 Tom Slee 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
perforce.vim 0.3 2002-01-15 6.0 Tom Slee - 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.
perforce.vim 0.2 2001-12-13 6.0 Tom Slee 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.
SourceForge.net Logo