On Jun 23, 7:32 am, StarWing <[email protected]> wrote:
> in a word, can I detect user undo buffer into a diffevent status?
>
> it must can detect these case:
> 1. press u
> 2. press U
> 3. press :undo<CR>
> 4. function! My_undo()
>         " some code...
>         undo
>         " some code...
>     endfunction
>     and press :call My_undo() or <C-R>=My_undo()<CR> or any other way
> to call My_undo()
>
> 5. function My_undo()
>         " some code...
>         norm u
>         " or
>         norm U
>         " some code....
>     endfunction
>     as above...
>

I'm pretty sure Vim has no built-in way to detect this. But why do you
think you need to do this? What are you trying to accomplish? There
may be a different way to reach your end goal.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to