Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
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

Re: Disabling persistent undo for a file mask

2017-02-23 Thread Christian Brabandt
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 >

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
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

Re: Disabling persistent undo for a file mask

2017-02-23 Thread Charles Campbell
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

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
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

Re: Disabling persistent undo for a file mask

2017-02-23 Thread RingoRangoRongo
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:

Re: Disabling persistent undo for a file mask

2017-02-23 Thread Ben Fritz
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 >

Re: Disabling persistent undo for a file mask

2017-02-22 Thread RingoRangoRongo
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

Re: Disabling persistent undo for a file mask

2017-02-22 Thread Ben Fritz
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

Disabling persistent undo for a file mask

2017-02-21 Thread RingoRangoRongo
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