On Jul 15, 5:33 am, StarWing <[email protected]> wrote:
> OKay, changenr() is more or less enough. but in doc, it says "After
> undo it is one less than the number of the undone change."
>
> so, how can I get the exactly serial number of current buffer? the one
> I can use in undo command. (changenr() can't use in undo command, exec
> changenr()."u" is not always current status of buffer).
What do you mean changenr() can't be used in the undo command? It says
right in the help that it can be! What exactly are you trying to do,
and what do you get instead? What is the "serial number of current
buffer"? Are you looking for :help changetick instead?
You give an example trying to do :exec changenr()."u" Don't you
want :exec "undo ".changenr()? It doesn't look like :undo takes a
count...it takes an argument.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---