undo file location was: Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Milan Vancura
When editing a file over a network or a removable media (USB stick) it's very easy to misplace the undo file. Also, when a file is edited by several people, or the same person with different login names or from different systems, the undo file would go in the wrong place. Also problems with

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Tony Mechelynck
On 24/05/10 23:52, Jordan Lewis wrote: [...] I should have worded my post better - I did mean the directory of the file as you indicate. And the patch doesn't blindly name all undo files the same if they have the same filename - with a common undo directory, the files will be named

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie James Vega
On Tue, May 25, 2010 at 01:21:43PM +0200, Tony Mechelynck wrote: On 24/05/10 23:52, Jordan Lewis wrote: [...] I should have worded my post better - I did mean the directory of the file as you indicate. And the patch doesn't blindly name all undo files the same if they have the same filename -

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie James Vega
On Tue, May 25, 2010 at 02:29:23PM +0200, Bram Moolenaar wrote: James Vega wrote: Are the undo files supposed to be hidden when 'undodir' is not the current directory? If so, that's not currently the case. When putting undo files with the edited files they are made hidden, just like swap

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Tony Mechelynck
On 25/05/10 14:19, James Vega wrote: On Tue, May 25, 2010 at 01:21:43PM +0200, Tony Mechelynck wrote: On 24/05/10 23:52, Jordan Lewis wrote: [...] I should have worded my post better - I did mean the directory of the file as you indicate. And the patch doesn't blindly name all undo files the

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Bram Moolenaar
Christian Brabandt wrote: On Mon, May 24, 2010 10:06 pm, Bram Moolenaar wrote: I also changed it to put the undofile with the edited file. That should work, as writing a file usually means the undofile can be written there as well. It's possible to change this with the 'undodir' option.

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Nikolai Weibull
On Tue, May 25, 2010 at 12:48, Christian Brabandt cbli...@256bit.org wrote: On Mon, May 24, 2010 10:06 pm, Bram Moolenaar wrote: I also changed it to put the undofile with the edited file.  That should work, as writing a file usually means the undofile can be written there as well.  It's

Re : Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Dimitar DIMITROV
That said, I think persistent undo is more or less useless and, well, just a big pile of potential problems. Persistent undo is in the version control system, not in the editor. I agree with that. This would probably be best left to versionning systems. Shouldn't Vim be used for purely text

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Bram Moolenaar
Michael Wookey wrote: On 25 May 2010 06:06, Bram Moolenaar b...@moolenaar.net wrote: As you may have noticed, I have added the persistent undo patch yesterday. There is a minor typo in the doc for 'persistent-undo'. Patch attached. Thanks! -- Bare feet magnetize sharp metal objects

Re: undo file location was: Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Mikolaj Machowski
On Tuesday 25 May 2010 13:11:34 Milan Vancura wrote: When editing a file over a network or a removable media (USB stick) it's very easy to misplace the undo file. Also, when a file is edited by several people, or the same person with different login names or from different systems, the

Re: Patch 7.2.427

2010-05-25 Fir de Conversatie James Vega
On Fri, May 14, 2010 at 11:53 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.2.427 Problem:    The swapfile is created using the destination of a symlink, but            recovery doesn't follow symlinks. Solution:   When recovering, resolve symlinks. (James Vega) Files:      

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Dominique Pellé
Nikolai Weibull wrote: That said, I think persistent undo is more or less useless and, well, just a big pile of potential problems.  Persistent undo is in the version control system, not in the editor. I think this is a bit harsh. Not every file is in version control. And even if you do use

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Nikolai Weibull
2010/5/25 Dominique Pellé dominique.pe...@gmail.com: Nikolai Weibull wrote: That said, I think persistent undo is more or less useless and, well, just a big pile of potential problems.  Persistent undo is in the version control system, not in the editor. I think this is a bit harsh. And I

Re: Patch 7.2.427

2010-05-25 Fir de Conversatie Lech Lorens
On 25-May-2010 James Vega james...@jamessan.com wrote: On Fri, May 14, 2010 at 11:53 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.2.427 Problem:    The swapfile is created using the destination of a symlink, but            recovery doesn't follow symlinks. Solution:   When

inoremap esc bug?

2010-05-25 Fir de Conversatie Bee
inoremap esc bug? http://vim.wikia.com/wiki/Avoid_the_escape_key I tried the Improving the Esc key on that page. inoremap Esc Esc`^ In Mac terminal and Linux urxvt it has side effects for the arrow keys. The arrow keys up, down, right, left produce A, B, C, D respectively. Hmmm, vim keycodes

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Christian Brabandt
Hi Nikolai! On Di, 25 Mai 2010, Nikolai Weibull wrote: 2010/5/25 Dominique Pellé dominique.pe...@gmail.com: Nikolai Weibull wrote: That said, I think persistent undo is more or less useless and, well, just a big pile of potential problems.  Persistent undo is in the version control

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Nikolai Weibull
On Tue, May 25, 2010 at 19:42, Christian Brabandt cbli...@256bit.org wrote: On Di, 25 Mai 2010, Nikolai Weibull wrote: 2010/5/25 Dominique Pellé dominique.pe...@gmail.com: Nikolai Weibull wrote: That said, I think persistent undo is more or less useless and, well, just a big pile of

C-N , C-P causes crash

2010-05-25 Fir de Conversatie reckoner
Hi, When I try to complete using C-N or C-P in insert mode, I routinely get a crash. I just download the latest svn svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7 I have the following in my _vimrc: set complete+=s*.py set complete-=k complete+=k Below is the error

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Christian J. Robinson
On Tue, 25 May 2010, Nikolai Weibull wrote: And no one forced you to defend this feature. True, nobody is forcing anybody to defend the feature, but what do you expect to happen when you complain about it? Why does everyone have to come in and say basically the same thing in response to

(bug) yank and a particular utf-8 character

2010-05-25 Fir de Conversatie Charles Campbell
Hello! Set up a file tmp with a single line: (this line should appear as a -1 with a m exponent; ie. char-0x1D50 -1ᵐ Use the following command: vim -u simple.vimrc tmp and try Yp (yank and put). simple.vimrc: set nocp set enc=utf-8 I see --11ᵐ instead of -1ᵐ -1ᵐ ie. its picking up the

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Nikolai Weibull
On Tue, May 25, 2010 at 21:04, Christian J. Robinson hept...@gmail.com wrote: On Tue, 25 May 2010, Nikolai Weibull wrote: And no one forced you to defend this feature. True, nobody is forcing anybody to defend the feature, but what do you expect to happen when you complain about it? I

[patch] invalid memory access when removing a funcref variable

2010-05-25 Fir de Conversatie Lech Lorens
There is a possibility of Vim crashing when a variable or an option ('omnifunc' or 'completefunc') is unset or has its value modified. The crash is due to an invalid memory access, which is reported by Valgrind as follows: #v+ ==19657== Invalid write of size 1 ==19657==at 0x8077102:

Patch 7.2.438

2010-05-25 Fir de Conversatie Bram Moolenaar
Patch 7.2.438 (after 7.2.427) Problem:vim -r crashes. Solution: Don't use NULL pointer argument. Files: src/memline.c *** ../vim-7.2.437/src/memline.c2010-05-14 17:52:35.0 +0200 --- src/memline.c 2010-05-25 21:36:01.0 +0200 *** *** 1404,1418

netbeans patches on vim73

2010-05-25 Fir de Conversatie Xavier de Gaye
I have tested successfully the following two netbeans vim73 patches with pyclewn and by running the pyclewn test suite: o changeset: 2200:8c6a66e2b3cc | branch: vim73 | user:Bram Moolenaar b...@vim.org | date:Sat May 22 21:34:09 2010 +0200 | summary: Add :nbstart

Re: C-N , C-P causes crash

2010-05-25 Fir de Conversatie Lech Lorens
On 25-May-2010 reckoner recko...@gmail.com wrote: Hi, When I try to complete using C-N or C-P in insert mode, I routinely get a crash. I just download the latest svn svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7 I have the following in my _vimrc: set complete+=s*.py

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie François Ingelrest
2010/5/25 Dominique Pellé dominique.pe...@gmail.com: Does anybody use all Vim features? :-) Does anybody actually know all Vim features? :-) Sometimes I accidentally quit Vim while editing a file (hitting w and q at the same time when saving for instance), losing the undo history at the same

Re: inoremap esc bug?

2010-05-25 Fir de Conversatie Tony Mechelynck
On 25/05/10 18:03, Bee wrote: inoremapesc bug? http://vim.wikia.com/wiki/Avoid_the_escape_key I tried the Improving the Esc key on that page. inoremapEsc Esc`^ In Mac terminal and Linux urxvt it has side effects for the arrow keys. The arrow keys up, down, right, left produce A, B, C, D

Re: Patch 7.2.427

2010-05-25 Fir de Conversatie Bram Moolenaar
James Vega wrote: On Fri, May 14, 2010 at 11:53 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.2.427 Problem:   The swapfile is created using the destination of a symlink, but       recovery doesn't follow symlinks. Solution:  When recovering, resolve

Re: (bug) yank and a particular utf-8 character

2010-05-25 Fir de Conversatie Bram Moolenaar
Charles Campbell wrote: Set up a file tmp with a single line: (this line should appear as a -1 with a m exponent; ie. char-0x1D50 -1áµ Use the following command: vim -u simple.vimrc tmp and try Yp (yank and put). simple.vimrc: set nocp set enc=utf-8 I see --11áµ

Re: [patch] fixed uninitialized mem access with :wundo foo when foo exists its size is 0

2010-05-25 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: I see the following error with Valgrind in Vim-7.3a BETA (c81f0a037059) when doing :wundo foo and when file foo already exists and has size 0: ==4957== Conditional jump or move depends on uninitialised value(s) ==4957==at 0x81BCB49: u_write_undo (undo.c:1293)

undo file location was: Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Bram Moolenaar
Milan Vancura wrote: When editing a file over a network or a removable media (USB stick) it's very easy to misplace the undo file. Also, when a file is edited by several people, or the same person with different login names or from different systems, the undo file would go in the wrong

Re: [patch] invalid memory access when removing a funcref variable

2010-05-25 Fir de Conversatie Bram Moolenaar
Lech Lorens wrote: There is a possibility of Vim crashing when a variable or an option ('omnifunc' or 'completefunc') is unset or has its value modified. The crash is due to an invalid memory access, which is reported by Valgrind as follows: #v+ ==19657== Invalid write of size 1

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Jordan Lewis
On Tue, May 25, 2010 at 2:27 PM, Nikolai Weibull n...@bitwi.se wrote: I figured that “That said, I think persistent undo is more or less useless and, well, just a big pile of potential problems. Persistent undo is in the version control system, not in the editor.” is me stating an opinion

Re: C-N , C-P causes crash

2010-05-25 Fir de Conversatie reckoner
Lech: Thanks for your reply. I'm attaching the _vimrc (sorry it's kind of messy). The tricky part is that I can't reliably reproduce the error, even though it happens consistently. In other words, I can't exactly articulate a finite series of steps that lead to the crash other than I keep

Re: Patch 7.2.427

2010-05-25 Fir de Conversatie Lech Lorens
On 25-May-2010 Lech Lorens lech.lor...@gmail.com wrote: On 25-May-2010 James Vega james...@jamessan.com wrote: On Fri, May 14, 2010 at 11:53 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.2.427 Problem:    The swapfile is created using the destination of a symlink, but    

Re: inoremap esc bug?

2010-05-25 Fir de Conversatie Bee
On May 25, 1:19 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 25/05/10 18:03, Bee wrote: inoremapesc  bug? http://vim.wikia.com/wiki/Avoid_the_escape_key I tried the Improving the Esc key on that page. inoremapEsc  Esc`^ In Mac terminal and Linux urxvt it has side

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Nikolai Weibull
On Tue, May 25, 2010 at 22:38, Jordan Lewis jordanthele...@gmail.com wrote: For example, pretend you're developing the ultimate novel Vim feature, but you've caused a bug, and want to trace it in gdb. You edit Vim's makefile to enable -g in CFLAGS, recompile, track down the bug, and want to

Re: Update on Vim 7.3 status

2010-05-25 Fir de Conversatie Christian Brabandt
Hi Bram! On Di, 25 Mai 2010, Bram Moolenaar wrote: Christian Brabandt wrote: This completely depends on what you are doing. When a file has been edited by someone else, using Vim, you can undo his changes. That can be very useful. On the other hand, the undo file will reveal anything

Re: C-N , C-P causes crash

2010-05-25 Fir de Conversatie Tony Mechelynck
On 25/05/10 19:51, reckoner wrote: Hi, When I try to complete using C-N or C-P in insert mode, I routinely get a crash. I just download the latest svn svn co https://vim.svn.sourceforge.net/svnroot/vim/vim7 I have the following in my _vimrc: set complete+=s*.py set complete-=k complete+=k

Re: Patch for updated swedish spell files

2010-05-25 Fir de Conversatie MWinther
On May 22, 4:03 pm, Stefan Karlsson te...@gmail.com wrote: /.../  My attempt to contact the original maintainer resulted in a mail bounce /.../ It was me that you were trying to contact -- sorry about that :-) No worries, just glad you're alive! As I don't have much spare time these

3 remarks about undo.c

2010-05-25 Fir de Conversatie Dominique Pellé
Hi 3 remarks about vim/src/undo.c (at changeset: 271a5907f944): (1) Using persistent-undo, I notice once in a while the following memory leak, but I have not found the way to reproduce it all the time: ==3371== 10 bytes in 2 blocks are definitely lost in loss record 23 of 116 ==3371==at

Re: (bug) yank and a particular utf-8 character

2010-05-25 Fir de Conversatie Dominique Pellé
Charles Campbell wrote: Hello! Set up a file tmp with a single line: (this line should appear as a -1 with a m exponent; ie. char-0x1D50 -1ᵐ Use the following command: vim -u simple.vimrc tmp and try Yp (yank and put). simple.vimrc: set nocp set enc=utf-8 I see --11ᵐ instead

Re: (bug) yank and a particular utf-8 character

2010-05-25 Fir de Conversatie Tony Mechelynck
On 25/05/10 22:37, Bram Moolenaar wrote: Charles Campbell wrote: Set up a filetmp with a single line: (this line should appear as a -1 with a m exponent; ie. char-0x1D50 -1áµ Use the following command: vim -u simple.vimrc tmp and try Yp (yank and put). simple.vimrc: set nocp set enc=utf-8

Re: C-N , C-P causes crash

2010-05-25 Fir de Conversatie Lech Lorens
On 25-May-2010 reckoner recko...@gmail.com wrote: Lech: Thanks for your reply. I'm attaching the _vimrc (sorry it's kind of messy). The tricky part is that I can't reliably reproduce the error, even though it happens consistently. In other words, I can't exactly articulate a finite series

Re: inoremap esc bug?

2010-05-25 Fir de Conversatie Matt Wozniski
On Tue, May 25, 2010 at 4:53 PM, Bee beeyaw...@gmail.com wrote: On May 25, 1:19 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 25/05/10 18:03, Bee wrote: Is this a bug? Seems inoremap is not working here. I recommend         :set timeout timeoutlen=5000 ttimeoutlen=100 (or