From: *@eli.users.panix.com   
      
   In comp.editors, Janis Papanagnou wrote:   
   > Case 2 (cursor starting at first character of the _first_ word):   
   >   
   > Ωmega Ωmega Ωmega Ωmega Ωmega Ωmega Ωmega Ωmega   
   > ^ ^ ^ ^ first turn   
   > ^ ^ ^ ^ second turn   
   >   
      
   :help *   
      
    *star* *E348* *E349*   
   * Search forward for the [count]'th occurrence of the   
    word nearest to the cursor. The word used for the   
    search is the first of:   
    1. the keyword under the cursor |'iskeyword'|   
    2. the first keyword after the cursor, in the   
    current line   
    ...   
      
   :help iskeyword   
    *'iskeyword'* *'isk'*   
   'iskeyword' 'isk' string (Vim default for MS-DOS and Win32:   
    "@,48-57,_,128-167,224-235"   
    otherwise: "@,48-57,_,192-255"   
    Vi default: "@,48-57,_")   
    local to buffer   
    Keywords are used in searching and recognizing with many commands:   
    "w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See   
    'isfname' for a description of the format of this option. For '@'   
    characters above 255 check the "word" character class.   
    For C programs you could use "a-z,A-Z,48-57,_,.,-,>".   
    ...   
      
   I think it is a bug that "word" is not a link to somewhere in pattern.txt   
      
   In any case, it is clear that # and * recognize alphabetic characters   
   like Greek capital *letter* omega differently from non-alphabet symbol   
   characters like ohm *sign*. If you move along the line with "w" to jump   
   between "words" you see the differences. The # and * searches use word   
   boundaries, so word definitions are very important there.   
      
   You are still looking at an ohm sign and thinking of a letter which is   
   the trap of Unicode "look alikes", not something vim is doing wrong.   
      
   Elijah   
   ------   
   has vim's * remapped to _ and nearly used that writing this   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|