Re: [gentoo-user] Re: etc-update vs dispatch-conf

2006-10-14 Thread Steve Evans
On Saturday 14 October 2006 06:21, Trenton Adams wrote:
 I use dispatch-conf all the time.  I too have never looked back.

 I use diff=vimdiff -R %s %s in /etc/dispatch-conf.conf

 NOT SURE WHAT '-R' IS now though.  Perhaps it should not be there.


-R tells vim to be read only, so you cannot edit the files. It is probably a 
sensible option in this case.

 Then I add the following line to my .vimrc, which allows me to press
 F2 to exit the vimdiff windows in one shot.
 map F2 Esc:qCREsc:qCR


A more general version would be:

map F2 Esc:qaCR

as :qa quits all buffers, so it could be used to exit from vim with any number 
of open buffers.

Steve
-- 

2.6.17-gentoo-r8 Genuine Intel(R) CPU   T2300  @ 1.66GHz GNU/Linux

 12:32:08 up 22 min,  1 user,  load average: 0.07, 0.08, 0.08

It'll be a nice world if they ever get it finished.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: etc-update vs dispatch-conf

2006-10-14 Thread Trenton Adams

On 10/14/06, Steve Evans [EMAIL PROTECTED] wrote:

On Saturday 14 October 2006 06:21, Trenton Adams wrote:
 I use dispatch-conf all the time.  I too have never looked back.

 I use diff=vimdiff -R %s %s in /etc/dispatch-conf.conf

 NOT SURE WHAT '-R' IS now though.  Perhaps it should not be there.


-R tells vim to be read only, so you cannot edit the files. It is probably a
sensible option in this case.


Oh yes, that brings back memories.  I had forgotten that vimdiff
passes most arguments to vim.



 Then I add the following line to my .vimrc, which allows me to press
 F2 to exit the vimdiff windows in one shot.
 map F2 Esc:qCREsc:qCR


A more general version would be:

map F2 Esc:qaCR

as :qa quits all buffers, so it could be used to exit from vim with any number
of open buffers.


When I created it, I was thinking of how to quit both buffers.  Never
thought of looking for a quit *all*. :)  Thanks.



Steve
--

2.6.17-gentoo-r8 Genuine Intel(R) CPU   T2300  @ 1.66GHz GNU/Linux

 12:32:08 up 22 min,  1 user,  load average: 0.07, 0.08, 0.08

It'll be a nice world if they ever get it finished.

--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: etc-update vs dispatch-conf

2006-10-13 Thread Remy Blank
maxim wexler wrote:
 What does the group think?

I don't know about the group, but I use etc-update and keep all of /etc
in a Subversion working copy. This allows quickly seeing any changes
made on updates and emerges, reverting changes if anything breaks, and
keeping track of the reasons for specific changes in commit log messages.

I also use a tool to store file and directory ownership and ACLs in an
SVN property. I believe dispatch-conf doesn't track ownership and
permissions.

I even thought about using a distributed VCS like git to be able to push
changes to a group of machines for e.g. updates, but then again, I don't
have enough installations to maintain. Has anybody done something in
this direction?

-- Remy


Remove underscore and suffix in reply address for a timely response.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: etc-update vs dispatch-conf

2006-10-13 Thread Erik

I much prefer dispatch-conf.  I just find it easier to use.  I find
etc-update a touch crude in the way it takes input.

On 10/13/06, Remy Blank [EMAIL PROTECTED] wrote:

maxim wexler wrote:
 What does the group think?

I don't know about the group, but I use etc-update and keep all of /etc
in a Subversion working copy. This allows quickly seeing any changes
made on updates and emerges, reverting changes if anything breaks, and
keeping track of the reasons for specific changes in commit log messages.

I also use a tool to store file and directory ownership and ACLs in an
SVN property. I believe dispatch-conf doesn't track ownership and
permissions.

I even thought about using a distributed VCS like git to be able to push
changes to a group of machines for e.g. updates, but then again, I don't
have enough installations to maintain. Has anybody done something in
this direction?

-- Remy


Remove underscore and suffix in reply address for a timely response.

--
gentoo-user@gentoo.org mailing list





--
Erik
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: etc-update vs dispatch-conf

2006-10-13 Thread Trenton Adams

I use dispatch-conf all the time.  I too have never looked back.

I use diff=vimdiff -R %s %s in /etc/dispatch-conf.conf

NOT SURE WHAT '-R' IS now though.  Perhaps it should not be there.

Then I add the following line to my .vimrc, which allows me to press
F2 to exit the vimdiff windows in one shot.
map F2 Esc:qCREsc:qCR

The old config shows up on the left, and the new config shows up on the right.

Press Ctrl-W and the left or right arrow key to switch between window buffers.

What I usually do, if there are additions to the new config that I
want, is copy them from the right window, paste them in the left
window, and save the left window.  Then, I hit F2, then 'z' for zap,
and my old config has the new settings that it needs.

If you don't like vim, then you might not like vimdiff.

On 10/13/06, Erik [EMAIL PROTECTED] wrote:

I much prefer dispatch-conf.  I just find it easier to use.  I find
etc-update a touch crude in the way it takes input.

On 10/13/06, Remy Blank [EMAIL PROTECTED] wrote:
 maxim wexler wrote:
  What does the group think?

 I don't know about the group, but I use etc-update and keep all of /etc
 in a Subversion working copy. This allows quickly seeing any changes
 made on updates and emerges, reverting changes if anything breaks, and
 keeping track of the reasons for specific changes in commit log messages.

 I also use a tool to store file and directory ownership and ACLs in an
 SVN property. I believe dispatch-conf doesn't track ownership and
 permissions.

 I even thought about using a distributed VCS like git to be able to push
 changes to a group of machines for e.g. updates, but then again, I don't
 have enough installations to maintain. Has anybody done something in
 this direction?

 -- Remy


 Remove underscore and suffix in reply address for a timely response.

 --
 gentoo-user@gentoo.org mailing list




--
Erik
--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list