Skip to content

fourjay/rcs.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

Updated RCS wrapper

Forked from http://www.vim.org/scripts/script.php?script_id=1111

This is a wrapper around RCS. Unlike the original plugin this uses normal vim editing commands for commit messages. It's also been tweaked for my use cases, in particular support for privilege escalation through sudo and repeated edit -> cycles.

RCS is still a fairly decent way to add one-off ad-hoc version control particularly for system administration work. The original plugin works well, but has some issues in this scenario.

  • The plugin prompts for checkout too aggressively. I commonly use my user account to open root owned files. The plugin sees the lock condition and prompts for (an uncompletable) checkout.

  • I'd like to be able to sudo ci. This mirrors the (various) SudoWrite actions.

The original uses input() to emulate rcs's primitive editor. This seems a waste, as vim is a superb editor. I've altered the code to use a vim split.

Original Commands With changes

RCSco   - The same

RCSco   - made "w" the default

RCSDiff - The same

New Commands

RCSSudo - set a per buffer persistant sudo on RCS commands

RCSwork - A common workflow, ci, then co -l.
This streamlines a common workflow

RCSnostrict - enable loose(r) lock behavior ``rcs -U [filename]``

Packages

No packages published

Languages

  • Vim Script 100.0%