sponsor Vim development Vim logo Vim Book Ad

CVSconflict : CVS conflict resolution using vimdiff

 script karma  Rating 67/25, Downloaded by 2343  Comments, bugs, improvements  Vim wiki

created by
Charles Campbell
 
script type
utility
 
description
CVS conflict resolution using vimdiff

When one does "cvs update", one may get files marked with "C" for conflict.  Cvs was unable to automatically merge one's local version of such files with the repository's version, and so merging requires human intervention.  The :CVSconflict command takes the current conflict file, splits it into two separate files, and enables vimdiff-style editing and viewing.

A command,

  :CVSconflict

is provided which transforms the current file containing cvs conflict sections such as

  <<<<<<<
  ...local version...
  =======
  ...repository version...
  >>>>>>>

into two side by side versions.  Vim's diff mode is enabled with these two windows, greatly facilitating the production of a merged file.

(alpha/beta version available at http://www.drchip.org/astronaut/vim/index.html#CVSCONFLICT)
 
install details
1. Place copy in your .vim/plugin (vimfiles\plugin) directory
2. gunzip CVSconflict.vim.gz

The file should automatically set up help the next time you fire up vim.
 

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
CVSconflict.vim.gz 1 2005-09-29 6.0 Charles Campbell When one does "cvs update", one may get files marked with "C" for conflict.  Cvs was unable to automatically merge one's local version with the repository, and merging requires human intervention.  The :CVSconflict command takes the current conflict file, splits it into two separate files, and enables vimdiff-style editing and viewing.
ip used for rating: 44.201.64.238

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.
   
Vim at Github