Re: Three oddities

2006-09-14 Thread Bram Moolenaar

Christoph Koegl wrote:

 I noticed the following in VIM 7:
 - When I have multiple tabs and windows in each tab open, and I am
   doing a :bufdo :e to reload all buffers, the list of files is
   printed as they are being reloaded. After finishing, however, the
   last file having been reloaded is put into the window which had the
   focus, instead of the file that had been there before.

:bufdo does its work in the current window.  You can do something like:

:tabdo windo edit

Be aware of side effects though!  You probably want to tune this to your
needs.

 - Options cursorline and cursorcolumn are very useful. I suspect that they
   complicate the already complicated highlighting interactions even further.
   E.g., hlsearch-highlighted patterns take precedence (which is ok!), but
   background colors of syntax-highlighted text don't. Can you add something
   to enable the user to choose which background color should prevail
   (i.e. syntax-background vs. cursorline-background)?

I don't like adding options for such details.

 - In VIM 6, when starting an incremental search, as I was typing more
   and more letters, the line number shown in the status line was
   updated to be equal to the line of the current match, i.e. it
   increased as I was typing. This is no longer the case in VIM 7. I
   found the VIM 6 behavior more useful.

This is probably due to an optimization in redrawing.  I can force the
ruler to be updated.

-- 
ARTHUR: Charge!
   [They all charge with swords drawn towards the RABBIT.  A tremendous twenty
   second fight with Peckinpahish shots and borrowing heavily also on the
   Kung Fu and karate-type films ensues, in which some four KNIGHTS are
   comprehensively killed.]
ARTHUR: Run away!  Run away!
 Monty Python and the Holy Grail PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///


Three oddities

2006-09-13 Thread Dr . Christoph Kögl

Hi all,

I noticed the following in VIM 7:
- When I have multiple tabs and windows in each tab open, and I am
 doing a :bufdo :e to reload all buffers, the list of files is printed as 
they are being
 reloaded. After finishing, however, the last file having been reloaded is 
put
 into the window which had the focus, instead of the file that had been 
there

 before.
- Options cursorline and cursorcolumn are very useful. I suspect that they
 complicate the already complicated highlighting interactions even further.
 E.g., hlsearch-highlighted patterns take precedence (which is ok!), but
 background colors of syntax-highlighted text don't. Can you add something
 to enable the user to choose which background color should prevail
 (i.e. syntax-background vs. cursorline-background)?
- In VIM 6, when starting an incremental search, as I was typing more and 
more

 letters, the line number shown in the status line was updated to be equal
 to the line of the current match, i.e. it increased as I was typing. This 
is no

 longer the case in VIM 7. I found the VIM 6 behavior more useful.

Cheers,

Christoph 



Re: Three oddities

2006-09-13 Thread A.J.Mechelynck

Dr. Christoph Kögl wrote:

Hi all,

I noticed the following in VIM 7:
- When I have multiple tabs and windows in each tab open, and I am
 doing a :bufdo :e to reload all buffers, the list of files is printed 
as they are being
 reloaded. After finishing, however, the last file having been reloaded 
is put
 into the window which had the focus, instead of the file that had been 
there

 before.


If you want to keep each file in the same window(s) it was before, use 
:windo e. This won't reload hidden buffers though.


:bufdo will cycle through all buffers (including hidden buffers, which 
are not displayed in a window). From :help :bufdo:


It works like doing this: 
:bfirst
:{cmd}
:bnext
:{cmd}
etc.

IIUC, any hidden buffers in the buffer list will (each one in its turn) 
replace whatever is displayed in the current window; but you don't see 
it because redraw only happens when going back to the keyboard input loop.



- Options cursorline and cursorcolumn are very useful. I suspect that they
 complicate the already complicated highlighting interactions even further.
 E.g., hlsearch-highlighted patterns take precedence (which is ok!), but
 background colors of syntax-highlighted text don't. Can you add something
 to enable the user to choose which background color should prevail
 (i.e. syntax-background vs. cursorline-background)?
- In VIM 6, when starting an incremental search, as I was typing more 
and more

 letters, the line number shown in the status line was updated to be equal
 to the line of the current match, i.e. it increased as I was typing. 
This is no

 longer the case in VIM 7. I found the VIM 6 behavior more useful.

Cheers,

Christoph



Best regards,
Tony.