On Wed 15-Aug-07 9:59am -0600, Yakov Lerner wrote:
> Undo after retab modifies 'tabstop' in a way that doesn't look consistent or
> correct.
> Test case:
> ---------------------------------
> vim -u NONE -U NONE
> i<tab>abc<esc>
> :set ts=4
> :retab 8
> u
> ----------------------------------
> After the last u, tabstop changes to 8. But we expect the screen
> to return to the state before :retab where tabstop was 4, not 8.
What we should expect from 'u' is the buffer to change to
its state before ':retab 8' - it does exactly that.
In your example:
:set ts=4
does not change the buffer but does change the visual
appearance. The tabstop is change to 4.
:retab 8
changes the tabstop to 8 but does not change the visual
appearance - as stated in the help file. It does this by
changing the tab to 4 spaces - a change to the buffer.
u
This undoes the buffer change - the 4 spaces are restored to
a tab. It does not change settings - the tabstop remains 8.
--
Best regards,
Bill
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---