Christian Brabandt wrote:
> attached is a patch, that makes 'undolevels' a buffer-local option. I
> think, this is useful if you are editing a large file you might want to
> disable undo completely, without loosing the undo information for other
> buffers.
Yes, this makes a lot of sense.
Perhaps the option should be global-local? That means that ":set" will
work as it does now, changing the value for all buffers, except for
buffers where ":setlocal" was used to specify a different value.
Although the change is straightforward, it would still be nice to have a
test for this. Thus edit a file, check that undolevels works (try two
values), split the window to edit another file, verify that setting
undolevels here doesn't change what happens in the other buffer.
Something like that.
--
Bypasses are devices that allow some people to dash from point A to
point B very fast while other people dash from point B to point A very
fast. People living at point C, being a point directly in between, are
often given to wonder what's so great about point A that so many people
from point B are so keen to get there and what's so great about point B
that so many people from point A are so keen to get there. They often
wish that people would just once and for all work out where the hell
they wanted to be.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" 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