Re: GTK vs. Gnome

2006-06-21 Thread Bram Moolenaar
Tony Mechelynck wrote: In *gui_x11.txt* For Vim version 7.0. Last change: 2006 Apr 30 at lines 409-410, there is: --8-- GNOME is automatically compiled with if it was found by configure. (FIXME: Is this still true? Use --enable-gnome-check to force it to.)

Re: how to find dict corruption?

2006-06-21 Thread Eric Arnold
On 6/21/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Eric Arnold wrote: I've added a v:variable which is a dict type. When I set it in a script, and echo it, everything is fine: let v:timertable[ 'TstTimer' ] = 1000 echo string( v:timertable ) However, it is trashed (garbage in the hash

Re: [BUG] Crash when modifying a:000

2006-06-21 Thread Mikolaj Machowski
Dnia środa, 21 czerwca 2006 11:17, Nikolai Weibull napisał: Something I found some time ago but for some reason forgot to report: function A(...) echo remove(a:000, 0) endfunction call A('a') Confirming for 7.020 gdb output: *** glibc detected *** free(): invalid pointer: 0xbfc099e8 ***

Re: [BUG] Crash when modifying a:000

2006-06-21 Thread Bram Moolenaar
Nikolai Weibull wrote: Something I found some time ago but for some reason forgot to report: function A(...) echo remove(a:000, 0) endfunction call A('a') It would be great if a:000 was modifiable, but if that hinders efficiency, at least it should be made read-only somehow.

Re: File browsing in Vim

2006-06-21 Thread Luc Hermitte
Hello, * On Tue, Jun 20, 2006 at 07:43:19PM -0700, Suresh Govindachar [EMAIL PROTECTED] wrote: I can type :find (with space) and hit tab to see the list of files in the present directory. If I know there is an 'o' in the file's name, I can type :find *o* and hit tab to see all files (in

Re: Editing an html file with vi

2006-06-21 Thread Peter Palm
Op maandag 19 juni 2006 19:03, schreef Adnan Ali: --- Peter Palm [EMAIL PROTECTED] wrote: Op maandag 19 juni 2006 17:04, schreef Adnan Ali: What is the output of: :version ? It's weird too. It says it is elvis. That's how I found what vi was pointing to. I hope you don't snub me for

Re: File browsing in Vim

2006-06-21 Thread Bram Moolenaar
Nick Lo wrote: Also, after playing with the new tabs I found a bug where the 4 window split would disappear if I opened a few tabs and came back to the 4 windowed one. This was in fact the point where I asked ...well do I actually NEED the static file browser. Do you have a

Re: how to detect c99 vs c89 (//-comments vs /*-comments)

2006-06-21 Thread Mike Williams
Hi, In general you cannot detect which version of the standard some C has been written against since C89 code should still compile with a C99 compiler. There are new keywords, but some developers use macros to emulate C99 like features in C89 code. Your best bet is a mode line, possible a

Register size

2006-06-21 Thread Anatoli Sakhnik
Hello, vim users! Can anyone tell me how big a vim register is? It's very unpleasant, when I yank some piece of text in the source and can paste only part of it. Is there a restriction? No word about the subject neither in the documentation nor in the web. -- Anatoli Sakhnik

Re: File browsing in Vim

2006-06-21 Thread Eric Arnold
To further stretch the use of the Ex prompt for this, try CD_Plus.vim. On 6/20/06, Nick Lo [EMAIL PROTECTED] wrote: Thanks Matt, I did have the feeling that I could bend Vim to my old ways, but this revelation was more about realising that I wasn't using features that make Vim different from

Re: Register size

2006-06-21 Thread Eric Arnold
On 6/21/06, Anatoli Sakhnik [EMAIL PROTECTED] wrote: Hello, vim users! Can anyone tell me how big a vim register is? It's very unpleasant, when I yank some piece of text in the source and can paste only part of it. Is there a restriction? No word about the subject neither in the documentation

Re: Register size

2006-06-21 Thread Tim Chase
I don't know of a limit within normal uses (i.e. 100K or so). How long is the text you are trying to yank? I can't say I've hit any abnormal limits either, and I've yanked/pasted some pretty long texts from log-file dumps. If you need to read in a huge quantity of data, you can save that

Re: File browsing in Vim

2006-06-21 Thread Nick Lo
Hi Bram, Yes it's reproducible: I'm using the OS X Universal binary... http://macvim.org/OSX/files/binaries/OSX10.4/Vim7.0-univ.tar.bz2 ...from... http://macvim.org/OSX/index.php and have upgraded netrw to v100. It's files reside in my .vim directory while the OS X package still has the

Re: Register size

2006-06-21 Thread Mathias Michaelis
Anatoli Can anyone tell me how big a vim register is? I can't. With HUGE (g)vim-7.0.22 on Windows XP I have experienced no problem when yanking 100MB of text (except of the business of my hard drive). It's very unpleasant, when I yank some piece of text in the source and can paste only part

What might cause .vimrc not to be read

2006-06-21 Thread reader
Running Gentoo linux vim 7 (~/.vimrc follows message; compile info follows ~/.vimrc) On a recent fresh install after setting up ~/ I'm finding that vim appears not to be slurping ~/.vimrc. When it starts I don't see my settings showing line number and percentage of file. Running `:so ~/.vimrc'

Re: Register size

2006-06-21 Thread Anatoli Sakhnik
Let's just wait a while until I encounter the problem again. I think there's an unexpected feature either in the win32 version of the vim or in one of plugins I use. -- Sakhnik On 21/06/06, Tim Chase [EMAIL PROTECTED] wrote: I can't say I've hit any abnormal limits either, and I've

Re: Register size

2006-06-21 Thread Matthew Winn
On Wed, Jun 21, 2006 at 12:48:48PM +0300, Anatoli Sakhnik wrote: Can anyone tell me how big a vim register is? It's very unpleasant, when I yank some piece of text in the source and can paste only part of it. Is there a restriction? I'm not aware of any restriction, providing you remain within

Vim Script : How to Delete a buffer or exit Vim at the end of a treatment ?

2006-06-21 Thread Eddine
Hi, I'm using a vim script to make some data formating. I source it from the original file I want to process and the script produces me a new file. I would like to add commands that whether emply the buffer list or exit Vim once I'm done. I tried to add :bd :bd :q or bd bd q or even :bdCR

Re: how to detect c99 vs c89 (//-comments vs /*-comments)

2006-06-21 Thread Russell Bateman
We keep hearing about how placing a modeline at the top of the file... Because I work in a multitabbed environment (i.e.: there are more than one tab standard), I have to use a modeline to sort out tabstop and shiftwidth. I put this modeline AT THE BOTTOM of my file where it works just fine

Re: Vim Script : How to Delete a buffer or exit Vim at the end of a treatment ?

2006-06-21 Thread A.J.Mechelynck
Eddine wrote: Hi, I'm using a vim script to make some data formating. I source it from the original file I want to process and the script produces me a new file. I would like to add commands that whether emply the buffer list or exit Vim once I'm done. I tried to add :bd :bd :q or bd bd q

Re: open perl module

2006-06-21 Thread Yegappan Lakshmanan
Hello, On 6/21/06, Ken Perl [EMAIL PROTECTED] wrote: hi, suppose I have a perl file like this, use AutoProfiler; If I move the cursor to the module name AutoProfiler and then split a new window to open the file, and search the file in @INC, is that possible to do this in VIM? The perl file

Re: how to detect c99 vs c89 (//-comments vs /*-comments)

2006-06-21 Thread Gregory Margo
For my own future reference, could you post an example of your modeline footer that covers all three editors? thanks, gm On Wed, Jun 21, 2006 at 07:48:26AM -0600, Russell Bateman wrote: We keep hearing about how placing a modeline at the top of the file... Because I work in a multitabbed

Vim 7 filename completion menu location bug

2006-06-21 Thread Neil Bird
Fedora Core 5, vim 7.0.012: the following line, in a file of type 'cfg' [I was editing a doxygen file when I saw it] with 132 columns, xterm and GTK+ GUI (the filename here is not the inital trigger, but also causes the failure; not all long lines do, though): INPUT =

Re: how to detect c99 vs c89 (//-comments vs /*-comments)

2006-06-21 Thread Gregory Margo
Sorry for my misunderstanding. You comment just rang a bell with me. There have been times when I was working with dreaded emacs users, and wanted to use one modeline section that covered both vim and emacs, but could never figure out the emacs side. gm On Wed, Jun 21, 2006 at 08:57:25AM -0600,

Re: Differences in the gf command between Windows and Linux

2006-06-21 Thread Jürgen Krämer
Hi, Tom Purl wrote: I've become a very big fan of using the pyGTD http://96db.com/pyGTD/ script from within Vim 7. pyGTD creates file output that looks similar to this: 3.61 1:00 Get your hair cut C=0 P=4 CRC=33B0 I=4 U=4 T=1H [EMAIL PROTECTED],@Work ID=5

Re: tabline-menu

2006-06-21 Thread Steve Hall
From: A.J.Mechelynck, Jun 20, 2006 11:24 PM Steve Hall wrote: On Wed, 2006-06-21 at 01:50 +0200, A.J.Mechelynck wrote: Which tabline menu? [snip] do you mind the context menu which opens when right-clicking the GUI-style tabline? Sorry, I should have re-stated. I was

RE: Working directory problems

2006-06-21 Thread Max Dyckhoff
Ok, I'm pretty sure it isn't a vim bug. The reason why it appeared to be occasionally was that the path works fine for files that have been opened before in this session. Because my vim sessions tend to last for weeks it just appears random because I forget which files I have opened. Basically if

Re: Differences in the gf command between Windows and Linux

2006-06-21 Thread Gerald Lai
On Wed, 21 Jun 2006, A.J.Mechelynck wrote: Tom Purl wrote: I've become a very big fan of using the pyGTD http://96db.com/pyGTD/ script from within Vim 7. pyGTD creates file output that looks similar to this: 3.61 1:00 Get your hair cut C=0 P=4 CRC=33B0 I=4 U=4 T=1H [EMAIL

Re: File browsing in Vim

2006-06-21 Thread Bram Moolenaar
Nick Lo wrote: Actually on a bit more exploration it also seems that if you: - Open that split file/netrw window - :tabnew with a new file in - Go to another OS X application - Return to Vim - Click the the split window and again the netrw window will have disappeared If you just

Re: Patches

2006-06-21 Thread Marc Weber
VIM 7 currently has 22 patches. I just installed 7.0 yesterday, and now I'd like to install the patches. How might I go about doing that? See vim.org Download - patches Download - developement aap should be able to do this for you. Marc

Re: File browsing in Vim

2006-06-21 Thread Nick Lo
Hi Chip, Via the GUI menu Netrw Settings/Options I see I do have: let g:netrw_fastbrowse = 0 I tried setting it to 1 (not knowing what it should be set otherwise be set to) and no change in the flicker. As I mentioned I do have v100 installed in .vim over whatever was built into the

Re: File browsing in Vim

2006-06-21 Thread Nick Lo
Hi Tom, I know you're probably sick of suggestions by now, but I have also spent a lot of time in the same boat as you. No, no, not sick of suggestions at all, getting suggestions was part of the reason I posted. In the end, I determined that the built-in file browser for vim (even in

Re: Bug in chaining dictionary function calls

2006-06-21 Thread Hari Krishna Dara
Just wanted to add to the below that the problem is not just chaining functions, but using the return value of the function itself. If the function returns a dictionary (and probably a list), you can't use it to access its members, so something like this will also fail: let t.T()['abc'] = 'xyz'

setting breakpoints in numbered functions

2006-06-21 Thread Hari Krishna Dara
I can't figure out how to set breakpoints in numbered functions, and find it difficult to debug in general, using them. They are not listed in the :function output, and there may not be a global identifier to use in the :breakadd command (e.g., functions on a script local dictionary). It would

Re: What might cause .vimrc not to be read

2006-06-21 Thread reader
Yakov Lerner [EMAIL PROTECTED] writes: To troubleshoot this, may I suggest 1. that you rename your existing (big) ~/.vimrc : mv ~/.vimrc ~/.v and 2. create temp 1-liner ~/.vimrc containing this: call input(XXX) 3. Then run vim with -V20 option 'vim -V20' (verbose level)

Re: What might cause .vimrc not to be read

2006-06-21 Thread Yakov Lerner
On 6/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yakov Lerner [EMAIL PROTECTED] writes: To troubleshoot this, may I suggest 1. that you rename your existing (big) ~/.vimrc : mv ~/.vimrc ~/.v and 2. create temp 1-liner ~/.vimrc containing this: call input(XXX) 3.

Re: run commands in background enhanced script

2006-06-21 Thread Luc Hermitte
* On Wed, Jun 21, 2006 at 02:07:58PM +0200, Marc Weber [EMAIL PROTECTED] wrote: Hi. Here is my enhanced script. Should now work for all windows users with python enabled vim too. Perl is likely more portable than python. For instance I have perl installed on the solaris box I'm working on at

Re: What might cause .vimrc not to be read

2006-06-21 Thread Gary Johnson
On 2006-06-21, [EMAIL PROTECTED] wrote: Running Gentoo linux vim 7 (~/.vimrc follows message; compile info follows ~/.vimrc) On a recent fresh install after setting up ~/ I'm finding that vim appears not to be slurping ~/.vimrc. When it starts I don't see my settings showing line number

Re: Bug in chaining dictionary function calls

2006-06-21 Thread Eric Arnold
On 6/21/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: Just wanted to add to the below that the problem is not just chaining functions, but using the return value of the function itself. If the function returns a dictionary (and probably a list), you can't use it to access its members, so

clipboard + unnamed register under X11

2006-06-21 Thread George V. Reilly
On Windows, I've long been used to having clipboard=unnamed, which ensures that all deletes, yanks, and puts go to or come from the clipboard by default. Is it possible to achieve this effect under X? I keep forgetting to prefix commands with +, which is awkward to type. I'd prefer not to

Re: Patches

2006-06-21 Thread A.J.Mechelynck
Rick Hogg wrote: Hello, VIM 7 currently has 22 patches. I just installed 7.0 yesterday, and now I'd like to install the patches. How might I go about doing that? Thanks, Rick __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam