P4EDITOR

Description

The editor invoked by those Perforce commands that use forms.

Usage Notes

Used by Client? Used by Server? Command-Line Alternative Can be set in P4CONFIG file?

Yes

No

None

Yes

Value if not Explicitly Set

Operating System Value

UNIX and OS X

If EDITOR is set to any value, then the value of EDITOR; otherwise, vi.

Windows

If SHELL is set to any value, then vi; otherwise, notepad.

VMS

If POSIX$SHELL is set, then vi; otherwise, edit.

Mac

If EDITOR_SIGNATURE is set, then the program with that four-character creator; otherwise, SimpleText.

Examples

/usr/bin/vi

emacs

/usr/bin/vi

Notes

The regular Perforce commands that use forms (and therefore, use this variable), are p4 branch, p4 change, p4 client, p4 job, p4 label, p4 submit, and p4 user.

The superuser commands that use forms are p4 depot, p4 group, p4 jobspec, p4 protect, p4 triggers, and p4 typemap.