On Monday, June 11, 2012 1:36:36 PM UTC-5, Ben Fritz wrote:
> > Without such an ability, a small feature of my script
> > will give incorrect results. I certainly do not want to
> > have to go through some massive effort to get this to
> > work; I was hoping for some already built-in Vim
> > capability - Vim is really such an open environment.
> > 
> 
> I'm really curious what this script is that you are making, that you want to 
> make changes which are not part of the undo tree and are not repeatable with 
> '.'. What sort of changes do you think people would want to have these 
> characteristics?
> 
> Vim does have the ":undojoin" command which allows you to do something like:
> 
> convert to hex output with xxd
> make a change to the hex
> convert back to binary
> 
> all in one change, so to the user it looks like (in terms of undo/redo) a 
> single change.
> 
> If you have a complicated script you want to run to "repeat" a change with 
> '.', you can check out the repeat.vim utility plugin on vim.org.


For undojoin you can see http://vim.wikia.com/wiki/Improved_hex_editing for a 
good example of its use.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to