On Sat, Nov 04, 2006 at 10:01:24PM +0100, Guido Van Hoecke wrote:
> Fellow Vimmers,
> 
> Lines 185-186 in usr_10.txt claim
> 
> ... Other flags include p (print), which causes the ":substitute" 
> command to print out each line it changes. ...
> 
> This is not what happens.
> 
> Line 639 in change.txt correctly describes the actual behaviour:
> [p]   Print the line containing the last substitute.
> 
> The text in usr_10.txt should be changed into something like:
> ... Other flags include p (print), which causes the ":substitute" 
> command to print out the last line it changes. ...
> 
> Cordially,
> 
> Guido.

     Thanks for reporting this.  In the future, you can make things a
little easier for Bram if you produce a patch, like the one below.  For
details on patch format, see my tip at
http://www.vim.org/tips/tip.php?tip_id=618

HTH                                     --Benji Fisher

*** /usr/local/share/vim/vim70/doc/usr_10.txt   2006-05-08 10:42:46.000000000 
-0400
--- /home/benji/temp/usr_10.txt 2006-11-06 08:27:47.358006837 -0500
***************
*** 183,190 ****
        Teacher Smith criticized Teacher Johnson today. ~
  
  Other flags include p (print), which causes the ":substitute" command to print
! out each line it changes.  The c (confirm) flag tells ":substitute" to ask you
! for confirmation before it performs each substitution.  Enter the following: >
  
        :%s/Professor/Teacher/c
  
--- 183,191 ----
        Teacher Smith criticized Teacher Johnson today. ~
  
  Other flags include p (print), which causes the ":substitute" command to print
! out the last line it changes.  The c (confirm) flag tells ":substitute" to ask
! you for confirmation before it performs each substitution.  Enter the
! following: >
  
        :%s/Professor/Teacher/c
  

Reply via email to