vim documentation about marks/file-marks

2006-06-11 Thread Marc Weber
Suggestion: change
===
  *m* *mark* *Mark*
  m{a-zA-Z} Set mark {a-zA-Z} at cursor position (does not move
  the cursor, this is not a motion command).

  *'* *'a* *`* *`a*
  '{a-z}  `{a-z}Jump to the mark {a-z}.

  *'A* *'0* *`A* *`0*
  '{A-Z0-9}  `{A-Z0-9}  To the mark {A-Z0-9} in the correct file (not a motion
  command when in another file).  {not in Vi}
===

to
===
*m* *mark* *Mark*
m{a-z}  Set buffer only mark {a-zA-Z} at cursor position 
*file-mark*
m{A-Z0-9}   Set vim wide mark (jump also to correct file)

m (does not move the cursor, this is not a motion 
command).

*'* *'a* *`* *`a*
'{a-zA-Z0-9}  `{a-zA-Z0-9}  Jump to the mark {a-zA-Z0-9}.
===

because you define the mark first before using it.
If you read that you can jump to a file-mark using 'A you will
definitely show how to define it.. ;)

But I should not have searched not only for "buffer" but also for "file"..

Thanks to tpope for pointing my mind in the right direction ;)

What do you think.. ?
Marc


Re: vim documentation about marks/file-marks

2006-06-18 Thread Bram Moolenaar

Marc Weber wrote:

> Suggestion: change
> ===
> *m* *mark* *Mark*
>   m{a-zA-Z}   Set mark {a-zA-Z} at cursor position (does not move
> the cursor, this is not a motion command).
> 
> *'* *'a* *`* *`a*
>   '{a-z}  `{a-z}  Jump to the mark {a-z}.
> 
> *'A* *'0* *`A* *`0*
>   '{A-Z0-9}  `{A-Z0-9}To the mark {A-Z0-9} in the correct file (not a 
> motion
> command when in another file).  {not in Vi}
> ===
> 
> to
> ===
>   *m* *mark* *Mark*
> m{a-z}Set buffer only mark {a-zA-Z} at cursor position 
>   *file-mark*
> m{A-Z0-9} Set vim wide mark (jump also to correct file)
>   
>   m (does not move the cursor, this is not a motion 
> command).
> 
>   *'* *'a* *`* *`a*
> '{a-zA-Z0-9}  `{a-zA-Z0-9}Jump to the mark {a-zA-Z0-9}.
> ===
> 
> because you define the mark first before using it.
> If you read that you can jump to a file-mark using 'A you will
> definitely show how to define it.. ;)
> 
> But I should not have searched not only for "buffer" but also for "file"..
> 
> Thanks to tpope for pointing my mind in the right direction ;)
> 
> What do you think.. ?

"buffer only mark" and "vim wide mark" are strange terms.

You can't do m0, m1, etc.

I think adding some test for 'a that it moves within the current buffer
is sufficient.

-- 
WOMAN:   Well, 'ow did you become king then?
ARTHUR:  The Lady of the Lake, [angels sing] her arm clad in the purest
 shimmering samite, held aloft Excalibur from the bosom of the water
 signifying by Divine Providence that I, Arthur, was to carry
 Excalibur.  [singing stops] That is why I am your king!
  The Quest for the Holy Grail (Monty Python)

 /// 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///