info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RCS->$CVSROOT/foo


From: Todd Denniston
Subject: Re: RCS->$CVSROOT/foo
Date: Mon, 24 Oct 2005 18:45:33 -0500

bill pursell wrote:
> 
> The exact command that I'm using is:
> command! -nargs=? RcsDiff vnew | set bt=nofile | exe 'r !co <args> -p
> #' | 0d_3 | diffthis | wincmd p | diffthis
> 
> Basically, it uses the "co" command with a -p to put the desired file
> on the standard output.   The difficulty with using cvs to do something
> similar is that I have to figure out which components of the path to
> the current directory are contained in the path relative to $CVSROOT.
> I'm sure I could parse the contents of CVS/Root to figure it out, but
> it adds complexity that isn't really necessary.

Ok, after looking at it a few minutes it kind of looks like the above script
runs IN the vim editor, and a little searching[0] turns up
cvscommand.vim[1], cvsvimdiff[2] and cvsmenu.vim[3]. Would any of those make
it so you could retire your RCS script when editing files managed by CVS?
 

BTW wow, I never new there was such a resource for vim ... but I think for
code editing I will stick with Xemacs.

[0]
http://www.vim.org/scripts/script_search_results.php?keywords=cvs&script_type=&order_by=rating&direction=descending&search=search
[1] http://www.vim.org/scripts/script.php?script_id=90
[2] http://vim.sourceforge.net/scripts/script.php?script_id=1209
[3] http://www.vim.org/scripts/script.php?script_id=58

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]