On Thursday, February 23, 2017 at 10:43:01 PM UTC+2, Christian Brabandt wrote:
Thanks for the explanation, Christian!
--
--
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
Hi RingoRangoRongo!
On Do, 23 Feb 2017, RingoRangoRongo wrote:
> Just confirmed same behaviour with VIM - Vi IMproved 7.3 (vim -u NONE):
>
> :set undolevels=1000
> :set undofile
> :set undodir
> :autocmd BufNewFile,BufRead,BufWrite *.sec setlocal ul=-1
>
> :sav test.sec " no undo file exists
>
On Thursday, February 23, 2017 at 9:09:58 PM UTC+2, Charles Campbell wrote:
> Just tried the attached minimal file along with the commands:
[…]
Well, you are also setting noundofile. And while this is a solution to my
question (and I dothank you for it, and also blame myself for not thinking
RingoRangoRongo wrote:
> Just confirmed same behaviour with VIM - Vi IMproved 7.3 (vim -u NONE):
>
> :set undolevels=1000
> :set undofile
> :set undodir
> :autocmd BufNewFile,BufRead,BufWrite *.sec setlocal ul=-1
>
> :sav test.sec " no undo file exists
>
> insert random text
>
> :w " undo file
Just confirmed same behaviour with VIM - Vi IMproved 7.3 (vim -u NONE):
:set undolevels=1000
:set undofile
:set undodir
:autocmd BufNewFile,BufRead,BufWrite *.sec setlocal ul=-1
:sav test.sec " no undo file exists
insert random text
:w " undo file appears
insert more random test
:w " undo
On Thursday, February 23, 2017 at 6:10:27 PM UTC+2, Ben Fritz wrote:
> Assuming this is reliably repeatable, before performing the :w command that
> would create the undo file, do this to see what undolevels is and which
> script last changed it:
>
> :verbose set undolevels?
0. empty buffer:
On Wednesday, February 22, 2017 at 9:45:02 AM UTC-6, RingoRangoRongo wrote:
> On Wednesday, February 22, 2017 at 5:21:20 PM UTC+2, Ben Fritz wrote:
> > Also, why are you using "setlocal undolevels=-1" instead of "setlocal
> > noundofile", if you goal is only to disable persistent undo. Setting
>
On Wednesday, February 22, 2017 at 5:21:20 PM UTC+2, Ben Fritz wrote:
> What other commands do you have in your .vimrc to enable the undo file for
> other file types? I'd guess you have an interference going on.
Nothing except this:
set undofile
set undodir=~/.vim/tmp//
No filetype is
On Wednesday, February 22, 2017 at 12:23:16 AM UTC-6, RingoRangoRongo wrote:
> Hi!
>
>
> In order to disable persistent undo for a file mask I have the following
> command in my .vimdc:
>
> autocmd! BufRead,BufWrite *.sec setlocal ul=-1
>
> However, I noticed the following strange
Hi!
In order to disable persistent undo for a file mask I have the following
command in my .vimdc:
autocmd! BufRead,BufWrite *.sec setlocal ul=-1
However, I noticed the following strange behaviour:
1. I save an empty buffer with :saveas file.sec command: no undo file present
2. I add
10 matches
Mail list logo