sponsor Vim development Vim logo Vim Book Ad

rcs.vim : Automatically handle RCS files

 script karma  Rating 71/23, Downloaded by 3990  Comments, bugs, improvements  Vim wiki

created by
Christian J. Robinson
script type
This is a set of autocommands, commands, and a menu to help you handle RCS controlled files.

If you try to modify a readonly file that has a RCS/<file>,v counterpart you will be asked if you want to check the file out for modification, and when you unload the buffer you'll be prompted if you want to check the file back in, and allowed to enter a log message.

Most of the commands have corresponding menu items, which should be fairly self-explanatory.

Details are in the auto-generated help file, see ":help rcs.txt".
install details
Place rcs.vim in your plugin directory.  See ":help 'runtimepath'".  If the help file isn't automatically generated, try doing ":RCSUpdateHelp ~/.vim/doc".

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
rcs.vim 0.16.0 2019-02-24 8.0 Christian J. Robinson - Always load the menu to simplify the script logic
- Support Windows
rcs.vim 0.15.2 2010-06-04 7.0 Christian J. Robinson - Suggestions by Jon Peatfield for the checkout routine:
  + Prompt the user on checkout if there were "unlocked" changes
  + Check for a lock by another user
- A few minor changes and fixes
rcs.vim 0.14 2010-04-24 7.0 Christian J. Robinson - Detect RCS's ,v files in the file's cwd as well (Jon Peatfield)
rcs.vim 0.13.1 2008-08-25 7.0 Christian J. Robinson - Fix error when g:rcs_plugin_* isn't set (Sven Bischof)
- Prompt the user when the file is unwritten and :RCSci is used (Sven Bischof)
- Sometimes the help file wasn't being generated--try a different method (Sven Bischof)
rcs.vim 0.12 2008-06-15 7.0 Christian J. Robinson - Try to safely escape shell commands
rcs.vim 0.11.1 2008-06-06 7.0 Christian J. Robinson - Use matchadd() instead of :2match -- less likelihood of a "collision" with another plugin
- Make entering the log messages easier
- Don't go into diff mode if a diff is already open in Vim
- Allow diffing of two consecutive revisions from the log view
- misc. minor changes
rcs.vim 0.10 2008-04-29 7.0 Christian J. Robinson - Abandoned Vim 6 support
- Allow editing of individual revision log messages from the log display
- Auto-install a help file if possible
rcs.vim 0.4 2008-04-08 6.0 Christian J. Robinson - Open the folds where the cursor is located when the file is checked out on the FileChangedRO event
- Internal documentation added
- Code clean up
rcs.vim 0.3 2006-08-26 6.0 Christian J. Robinson - Preserve the cursor position when reloading the file. (Mical Ward)
rcs.vim 0.2 2006-04-11 6.0 Christian J. Robinson - Minor changes to make it compatible with Vim 7.
rcs.vim 0.1 2004-10-23 6.0 Christian J. Robinson 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.