Re: ***SPAM*** bay vim in china
[EMAIL PROTECTED] wrote: dear sir Thank you very much for your support. I am panasonic corporate information systens company (china).I want to know whether vim is free to use.If not i want to bay vim in china. please tell me where to bay and how much . Thanks Regards 马培佳 TEL:(010)65582386-855613501032052 FAX:(010)65832430 [EMAIL PROTECTED] 松下电器(中国)有限公司 Panasonic Corporation Of China 地址:中国北京市朝阳区光华路甲8号和乔大厦C座7层 邮编:100026 1. Vim can be used freely under the Vim License. It can be downloaded in source form from the official Vim site ftp://ftp.vim.org/pub/vim/ . Some binary distributions are also available from the same site but they are not updated as bugfixes are published. Steve Hall distributes a bugfixed Windows installer, see http://cream.sourceforge.net/vim.html (I recommend installing version 7.0.017 which is the current released version). See also my HowTo pages if you want to compile Vim yourself (it's not difficult): http://users.skynet.be/antoine.mechelynck/vim/compile.htm (for Windows) and http://users.skynet.be/antoine.mechelynck/vim/compunix.htm (for Unix/Linux). 2. Vim users are encouraged to make a voluntary donation to the Kibaale Children Centre in Uganda, but that is at the users' discretion, nothing is required. 3. Users can also help Bram Moolenaar develop Vim by sponsoring/registering. See (after starting Vim version 7): :help license :help sponsor :help register Best regards, Tony.
Re: I just updated my Vim site
On Mon, 5 Jun 2006 at 9:30pm, A.J.Mechelynck wrote: Hari Krishna Dara wrote: I read your previous emails about your windows laptop being out and that you prefer Linux etc., so I have a suggestion. Why don't you install VMWare virtual server on your Linux box and have windows run just for the builds? If you don't want to purchase a license, it is still easy to get a free VM by using their free VMWare Player (you need to start from an existing downloadable free VM's and format and reinstall Windows on it). Several people have done this trick (ie, using VMWare player to create new VMs) and you can find a number of blogs on the net. What exactly is VMWare? Anything making my machine a server (accessible from clients on the Net) is a no-no. I am vaguely thinking of installing Wine just for the builds, but (a) I don't remember whether it requires a true Windows OS, and (b) running Cygwin on top of Wine on top of Linux strikes me as somewhat ridiculous. (The Windows compilation process which I understand uses Cygwin and the Make_cyg.mak to produce a native-Windows build by means of the MinGW for Cygwin compiler.) I think I'll keep my HowTo pages up (so it'll be easier for people to compile their own) and let Steve Hall distribute patched versions of Vim for Windows (a job I took from him when it seemed to me that his builds weren't forthcoming often enough). I hear that a self-installer for gvim 7.0.017 is currently available on his site; if he keeps it up there's no reason for me to duplicate the work. VMWare is like Wine, but my understanding is that it runs at a lower level than Wine. Also Wine is an emulator of Windows, where as VMWare is a virtualizer for OSes. It exposes the host hardware as virtual devices, and allows multiples OSes to boot and coexist at the same time. You can find this information at vmware.com. If you heard about MS virtual PC or MS Virtual Server, VMWare is not much different. When you use VMWare for booting Windows, you would need a valid license. If you only have a OEM license, I don't know if you can install it on a different machine, but if you can reinstall that OS on a new PC, it means you can install on a VM as well. Isn't there a cross-compiler for producing cygwin executables from Linux? -- HTH, Hari I have reserved space on my hard disk for a vfat partition, but that is empty space for the time being. I don't see Windows on the market except as OEM versions sold exclusively together with new computers, and I want neither a pirated version nor something unacceptably costly... OTOH, I'm not ready to distribute my gvim for Linux because I don't feel like it is of acceptable quality for public consumption (no Python, no MzScheme, no /dyn features...); but compiling on Linux is remarkably easy (once the required development packages are installed) so let's encourage Unix/Linux users to compile their own builds. That's where my new HowTo for Unix comes into play. I hope it will be useful. Best regards, Tony. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Minor bug: Crash of the win32 gui version under network start
Hello, vim developers! The gui-enabled win32 version of Vim-7.0 crashes when I try to launch it on a network drive. Actually, I have Vim-7.0 installed on my Windows XP host, and try to execute it without copying on Windows 2000 guest. On the guest I mapped a network path where the Vim was placed to disk letter Z:. I've been trying to dig into the problem (at the expense of my employer ;-) ), but it appeared to be more complicated than I expected. So it exposed even in the _compatible_ mode, didn't refer to any plugin. The stack got corrupted and the only tracable line of the code was: regexp.c:4198. Just before the trap the debugger complained that someone wrote data after allocated heap block (the address corresponds to the variable 'cond'). Should I pay more attention on this bug to provide more info? -- Anatoli Sakhnik. P.S.: The version without gui works just fine.
Vim on Windows XP x64 Diff
Hi, I have attached the diff of my vim build directory against vim70src.zip. Note that I added a few manifests, e.g. to install.exe, on the command line, and aren't included in the diff. The diff only shows the changes I made to create a vim build on _my_ box. Your mileage may, and quite likely will, vary. Ron diff -urN vim70-x86_32/src/gvim.exe.mnf vim70-x86_64/src/gvim.exe.mnf --- vim70-x86_32/src/gvim.exe.mnf 2006-05-07 15:13:04.0 +0100 +++ vim70-x86_64/src/gvim.exe.mnf 2006-05-08 16:05:27.46875 +0100 @@ -1,22 +1,22 @@ -?xml version=1.0 encoding=UTF-8 standalone=yes? -assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0 - assemblyIdentity -processorArchitecture=X86 -version=6.2.0.0 -type=win32 -name=Vim - / - descriptionVi Improved - A Text Editor/description - dependency -dependentAssembly - assemblyIdentity -type=win32 -name=Microsoft.Windows.Common-Controls -version=6.0.0.0 -publicKeyToken=6595b64144ccf1df -language=* -processorArchitecture=X86 - / -/dependentAssembly - /dependency -/assembly +?xml version=1.0 encoding=UTF-8 standalone=yes? +assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0 +assemblyIdentity +processorArchitecture=AMD64 +version=7.0.0.0 +type=win32 +name=Vim +/ +descriptionVi Improved - A Text Editor/description +dependency +dependentAssembly +assemblyIdentity +type=win32 +name=Microsoft.Windows.Common-Controls +version=6.0.0.0 +publicKeyToken=6595b64144ccf1df +language=* +processorArchitecture=AMD64 +/ +/dependentAssembly +/dependency +/assembly diff -urN vim70-x86_32/src/GvimExt/gvimext.dll.manifest vim70-x86_64/src/GvimExt/gvimext.dll.manifest --- vim70-x86_32/src/GvimExt/gvimext.dll.manifest 1970-01-01 00:00:00.0 + +++ vim70-x86_64/src/GvimExt/gvimext.dll.manifest 2006-05-09 19:51:55.390625000 +0100 @@ -0,0 +1,8 @@ +?xml version='1.0' encoding='UTF-8' standalone='yes'? +assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0' + dependency +dependentAssembly + assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='AMD64' publicKeyToken='1fc8b3b9a1e18e3b' / +/dependentAssembly + /dependency +/assembly diff -urN vim70-x86_32/src/if_perl.xs vim70-x86_64/src/if_perl.xs --- vim70-x86_32/src/if_perl.xs 2006-05-07 15:13:06.0 +0100 +++ vim70-x86_64/src/if_perl.xs 2006-05-07 22:50:06.359375000 +0100 @@ -155,8 +155,8 @@ static int (*perl_run)(PerlInterpreter*); static int (*perl_parse)(PerlInterpreter*, XSINIT_t, int, char**, char**); static void* (*Perl_get_context)(void); -static void (*Perl_croak)(pTHX_ const char*, ...) __attribute__((noreturn)); -static void (*Perl_croak_nocontext)(const char*, ...) __attribute__((noreturn)); +static void (*Perl_croak)(pTHX_ const char*, ...); +static void (*Perl_croak_nocontext)(const char*, ...); static I32 (*Perl_dowantarray)(pTHX); static void (*Perl_free_tmps)(pTHX); static HV* (*Perl_gv_stashpv)(pTHX_ const char*, I32); diff -urN vim70-x86_32/src/Make_mvc.mak vim70-x86_64/src/Make_mvc.mak --- vim70-x86_32/src/Make_mvc.mak 2006-05-07 15:13:02.0 +0100 +++ vim70-x86_64/src/Make_mvc.mak 2006-05-08 16:10:33.09375 +0100 @@ -284,7 +284,7 @@ # need shell32.lib for ExtractIcon() # gdi32.lib and comdlg32.lib for printing support # ole32.lib and uuid.lib are needed for FEAT_SHORTCUT -CON_LIB = advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib +CON_LIB = advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib bufferoverflowU.lib !if $(DELAYLOAD) == yes CON_LIB = $(CON_LIB) /DELAYLOAD:comdlg32.dll /DELAYLOAD:ole32.dll DelayImp.lib !endif @@ -322,15 +322,15 @@ # Convert processor ID to MVC-compatible number !if $(CPUNR) == i386 -CPUARG = /G3 +CPUARG = !elseif $(CPUNR) == i486 -CPUARG = /G4 +CPUARG = !elseif $(CPUNR) == i586 -CPUARG = /G5 +CPUARG = !elseif $(CPUNR) == i686 -CPUARG = /G6 +CPUARG = !elseif $(CPUNR) == pentium4 -CPUARG = /G7 /arch:SSE2 +CPUARG = /arch:SSE2 !else CPUARG = !endif @@ -338,11 +338,11 @@ !ifdef NODEBUG VIM = vim !if $(OPTIMIZE) == SPACE -OPTFLAG = /O1 +OPTFLAG = /O1 /GF /GL !elseif $(OPTIMIZE) == SPEED -OPTFLAG = /O2 +OPTFLAG = /O2 /GF /GL !else # MAXSPEED -OPTFLAG = /Ox +OPTFLAG = /Ox /GF /GL !endif CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG) RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG @@ -702,7 +702,7 @@ conflags = $(conflags) /map /mapinfo:lines !ENDIF -LINKARGS1 = $(linkdebug) $(conflags) /nodefaultlib:libc +LINKARGS1 = $(linkdebug) $(conflags) /nodefaultlib:libc /LTCG LINKARGS2 = $(CON_LIB) $(GUI_LIB) $(LIBC) $(OLE_LIB) user32.lib $(SNIFF_LIB) \ $(MZSCHEME_LIB) $(PERL_LIB) $(PYTHON_LIB) $(RUBY_LIB) \ $(TCL_LIB) $(NETBEANS_LIB) $(XPM_LIB) $(LINK_PDB) @@ -726,15 +726,15 @@ install.exe: dosinst.c $(CC) /nologo -DNDEBUG
security problem with ruby code completion in vim
Hallo, I have tested ruby code completion in vim and found that it is quite insecure. Lets have file 'a.rb': system('echo vim je pako /tmp/pako') class MyTest def test return 1 end end And then some file we edit e.g. 'b.rb': require 'a' t = MyTest.new t.t Now put cursor at the and of last line or b.rb and press CTRL-X-O (code completion), vim will correctly complete test. But as side effect file /tmp/pako with content vim je pako will be created... This can clearly be misused by an attacker or can cause harm accidently. People don't expect program to be run when editing it.. If code completion is done by code evaluation and introspection, safe level should be set to prevent dangerous operations. E.g. $SAFE=4 May be user could have an option to set lower safe mode, but the implicit configuration should be safe. Thanks for the great work you do on vim. Regards, -- Mgr. Martin Povolný, soLNet, s.r.o. Technická podpora [EMAIL PROTECTED] telefon: +420/549131233, +420/737743587 signature.asc Description: OpenPGP digital signature
Re: I just updated my Vim site
James Vega wrote: On Mon, Jun 05, 2006 at 11:10:21PM -0700, Hari Krishna Dara wrote: Isn't there a cross-compiler for producing cygwin executables from Linux? There is a cross-compiler for producing Windows native executables. It's mingw and that was what I used to produce binaries of the vim7 pre-release before I found Tony's site. I'm not sure if it can be used to create cygwin executables. James MinGW runs on Windows with Unix-like tools, doesn't it? Until or unless I find a compiler and linker running on Linux, producing pure-Windows executables, not playing havoc with my Linux-for-Linux gcc, and that can be run from Vim's makefiles (yes, I know, I'm asking a lot), I think I'll take a back seat to the development of Vim executables for Windows. Best regards, Tony.
Re: matchparen bug?
On Mon, Jun 05, 2006 at 04:24:38PM +0300, Ilya wrote: Benji Fisher wrote: I can reproduce it. Perhaps we just need more explicit instructions on how to reproduce it. Using the text above, go to the g:loaded_autoit_completion line and (starting in Normal mode) type $iDownDown to reproduce. I can see the problem in $VIMRUNTIME/plugin/matchparen.vim . In this situation, the plugin moves the cursor left one character, onto the ], and then back. When this happens, vim forgets that it is trying to keep the cursor in the same column as the 1. I do not see any way to fix this in the plugin. Perhaps the getpos() and setpos() functions can be changed so that they will keep the information that is being lost. HTH --Benji Fisher Hm, strange, but it does not happen to me, even if I do as you say My action: 1. Open gvim. 2. Paste text from first mail. 3. $iDownDown and cursor is to the left of 'o' in 'onmifunc'. Perhaps you have set 'matchpairs' so that it does not include [:]? Since you snipped the three sample lines, here is another example: long line () another After going to long line and doing $iDown do you have the cursor after the parentheses, with the parentheses highlighted? HTH --Benji Fisher
Re: I just updated my Vim site
On Tue, Jun 06, 2006 at 03:30:32PM +0200, A.J.Mechelynck wrote: James Vega wrote: On Mon, Jun 05, 2006 at 11:10:21PM -0700, Hari Krishna Dara wrote: Isn't there a cross-compiler for producing cygwin executables from Linux? There is a cross-compiler for producing Windows native executables. It's mingw and that was what I used to produce binaries of the vim7 pre-release before I found Tony's site. I'm not sure if it can be used to create cygwin executables. James MinGW runs on Windows with Unix-like tools, doesn't it? Yes, that's one use of MinGW, but there is also a linux-win32 cross-compiler. Your distribution may have packages. The MinGW wiki also has a HOWTO[0] for building the cross-compiler from their tools. James [0] http://www.mingw.org/MinGWiki/index.php/build%20a%20Win32%20x-compiler%20for%20Linux -- GPG Key: 1024D/61326D40 2003-09-02 James Vega [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: matchparen bug?
Benji Fisher wrote: Perhaps you have set 'matchpairs' so that it does not include [:]? matchpairs does include [:] - as by default. And brackets are highlighted when cursor is near one of them. Since you snipped the three sample lines, here is another example: long line () another After going to long line and doing $iDown do you have the cursor after the parentheses, with the parentheses highlighted? Yes, I do. And after doing Down I have cursor after 'r' in 'another'. HTH --Benji Fisher
Re: security problem with ruby code completion in vim
On 6/6/06, Martin Povolný [EMAIL PROTECTED] wrote: Hallo, I have tested ruby code completion in vim and found that it is quite insecure. Lets have file 'a.rb': system('echo vim je pako /tmp/pako') class MyTest def test return 1 end end And then some file we edit e.g. 'b.rb': require 'a' Here's where it happens. It will actually require 'a' so that it knows about the stuff in that file. $SAFE _may_ be a solution. nikolai
Re: I just updated my Vim site
From: A.J.Mechelynck, Jun 6, 2006 9:30 AM Until or unlessI think I'll take a back seat to the development of Vim executables for Windows. Tony, for what it's worth, I've improved the Cream build routines so that we can stay on top of patches more easily. Our previous delay was due to a hardware changeover that is now in the past, and we can now do the whole patch/build with a single command. Once we script the upload and page reference updates, the whole thing will be croned nightly. I'd do the same with GNU/Linux, but I haven't figured RPMS yet. :) -- Steve Hall [ digitect mindspring com ]
Re: I just updated my Vim site
James Vega wrote: On Tue, Jun 06, 2006 at 03:30:32PM +0200, A.J.Mechelynck wrote: James Vega wrote: On Mon, Jun 05, 2006 at 11:10:21PM -0700, Hari Krishna Dara wrote: Isn't there a cross-compiler for producing cygwin executables from Linux? There is a cross-compiler for producing Windows native executables. It's mingw and that was what I used to produce binaries of the vim7 pre-release before I found Tony's site. I'm not sure if it can be used to create cygwin executables. James MinGW runs on Windows with Unix-like tools, doesn't it? Yes, that's one use of MinGW, but there is also a linux-win32 cross-compiler. Your distribution may have packages. The MinGW wiki also has a HOWTO[0] for building the cross-compiler from their tools. James [0] http://www.mingw.org/MinGWiki/index.php/build%20a%20Win32%20x-compiler%20for%20Linux My distribution has lots of packages; but searching in yast2 among all (installed and uninstalled) packages for Name/Summary/Description Contains mingw (case-insensitive) gives: Null result. Similarly, rpm -qa |grep mingw (which IIUC searches only the names of installed packages) also gives nothing. I see that wiki but I'm not anymore enough of a guru to be certain that it will not clobber my installation of gcc for Linux. If it seems simple to you, why don't you do it yourself? I imagine (maybe in error, but...) that there are so many things that could go wrong... If I could do it successfully on Windows, it was thaks to Steve Hall, who paved the way for me, compiled a number of versions (starting at 6.1 or earlier), published his own HowTo which I could follow but also (maybe more important) understand the procedure and vary it to make it flow smoothly to generate the 4 executabvles I wished foor... Then he stopped compiling for a time and I started publishing builds for every patch. Later I disappeared from the scene and he took back the flag. Let him keep it. His self-installers are neater than anything I could produce; and I would start with the handicap of starting from scratch again, learning by hit-and-miss again (and probably getting many more misses than hits, at least at first). Please, let me concentrate my efforts on Vim versions whose proper workings I can check. If anyone on Windows is not content with Steve Hall's build (7.0.017 at the moment), I will (if needed) help him compile his own; but that cross-compiling stuff sounds to me like much ado about very little... Best regards, Tony.
Re: I just updated my Vim site
Steve Hall wrote: From: A.J.Mechelynck, Jun 6, 2006 9:30 AM Until or unlessI think I'll take a back seat to the development of Vim executables for Windows. Tony, for what it's worth, I've improved the Cream build routines so that we can stay on top of patches more easily. Our previous delay was due to a hardware changeover that is now in the past, and we can now do the whole patch/build with a single command. Once we script the upload and page reference updates, the whole thing will be croned nightly. Good! So I really can afford to leave the distribution of W32 Vim safely in your hands. I'd do the same with GNU/Linux, but I haven't figured RPMS yet. :) And even if someday you do understand RPM (used by RedHat and SuSE), you'll still have to figure out dpkg (for Debian) and what-not... I have compiled gvim on my SuSE system and found the process remarkably easy. If you have comments about my new HowTo for Linux ( http://users.skynet.be/antoine.mechelynck/vim/compunix.htm ) I sure want to hear them. For one thing, you will notice that contrary to official recommendations, I don't modify the Makefile: so I keep track of my configure options for use with the next version; and if a patch someday affects the Makefile it won't be thrown out of sync because of anything I did. I don't have Python in my current gvim but I can live without it; there is a python-devel package in my distribution but it refuses to install (bad RPM format or something). I may someday look into it but it's low on my agenda. Oh, and BTW, the version of Vim that came with that SuSE distribution is a kvim 6.2.014. How old is that? I used it for one day to make ready to compile my own, and now I don't need it anymore. Good riddance! Best wishes to you. :-) Best regards, Tony.
Re: I just updated my Vim site
On Tue, Jun 06, 2006 at 05:58:56PM +0200, A.J.Mechelynck wrote: James Vega wrote: On Tue, Jun 06, 2006 at 03:30:32PM +0200, A.J.Mechelynck wrote: James Vega wrote: On Mon, Jun 05, 2006 at 11:10:21PM -0700, Hari Krishna Dara wrote: Isn't there a cross-compiler for producing cygwin executables from Linux? There is a cross-compiler for producing Windows native executables. It's mingw and that was what I used to produce binaries of the vim7 pre-release before I found Tony's site. I'm not sure if it can be used to create cygwin executables. James MinGW runs on Windows with Unix-like tools, doesn't it? Yes, that's one use of MinGW, but there is also a linux-win32 cross-compiler. Your distribution may have packages. The MinGW wiki also has a HOWTO[0] for building the cross-compiler from their tools. James [0] http://www.mingw.org/MinGWiki/index.php/build%20a%20Win32%20x-compiler%20for%20Linux My distribution has lots of packages; but searching in yast2 among all (installed and uninstalled) packages for Name/Summary/Description Contains mingw (case-insensitive) gives: Null result. Similarly, rpm -qa |grep mingw (which IIUC searches only the names of installed packages) also gives nothing. I see that wiki but I'm not anymore enough of a guru to be certain that it will not clobber my installation of gcc for Linux. If it seems simple to you, why don't you do it yourself? I was more pointing this out for informational purposes instead of trying to push you to continue producing win32 versions of Vim. :) James -- GPG Key: 1024D/61326D40 2003-09-02 James Vega [EMAIL PROTECTED] signature.asc Description: Digital signature
Re: security problem with ruby code completion in vim
Nikolai Weibull wrote: On 6/6/06, Martin Povolný [EMAIL PROTECTED] wrote: Hallo, I have tested ruby code completion in vim and found that it is quite insecure. Lets have file 'a.rb': system('echo vim je pako /tmp/pako') class MyTest def test return 1 end end And then some file we edit e.g. 'b.rb': require 'a' Here's where it happens. It will actually require 'a' so that it knows about the stuff in that file. $SAFE _may_ be a solution. I understand how and why it happends. I report that it is a _security_problem_ and it should be fixed. Regards, -- Mgr. Martin Povolný, soLNet, s.r.o., +42014458, [EMAIL PROTECTED]
gvim crash using mouse with mousefocus set on opensuse 10.1
The version of gvim shipped with Suse 10.1 crashes when using the mouse. I've filed a bug: https://bugzilla.novell.com/show_bug.cgi?id=182212, but here is the stack trace again (below). Any suggestions on fixing this would be welcome. William (gdb) continue Continuing. *** stack smashing detected ***: gvim terminated Program received signal SIGABRT, Aborted. [Switching to Thread -1220815184 (LWP 20464)] 0xe410 in __kernel_vsyscall () (gdb) backtrace #0 0xe410 in __kernel_vsyscall () #1 0xb75ec7d0 in raise () from /lib/libc.so.6 #2 0xb75edea3 in abort () from /lib/libc.so.6 #3 0xb7621f8b in __libc_message () from /lib/libc.so.6 #4 0xb7695281 in __stack_chk_fail () from /lib/libc.so.6 #5 0x081844b1 in gui_mouse_moved (x=315, y=411) at gui.c:4201 #6 0x08192118 in process_motion_notify (x=315, y=411, state=0) at gui_gtk_x11.c:1596 #7 0x081921ed in motion_notify_event (widget=0x83942a0, event=0x83f4fe8, data=0x0) at gui_gtk_x11.c:1718 #8 0xb7d2d8fe in gtk_marshal_BOOLEAN__VOID () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #9 0xb7a858bd in g_closure_invoke () from /opt/gnome/lib/libgobject-2.0.so.0 #10 0xb7a96243 in g_signal_connect_closure_by_id () from /opt/gnome/lib/libgobject-2.0.so.0 #11 0xb7a9788f in g_signal_emit_valist () from /opt/gnome/lib/libgobject-2.0.so.0 #12 0xb7a97c95 in g_signal_emit () from /opt/gnome/lib/libgobject-2.0.so.0 #13 0xb7e185e8 in gtk_widget_get_default_style () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #14 0xb7d27313 in gtk_propagate_event () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #15 0xb7d28567 in gtk_main_do_event () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #16 0xb7bb958a in gdk_add_client_message_filter () from /opt/gnome/lib/libgdk-x11-2.0.so.0 #17 0xb7a1aabd in g_main_context_dispatch () from /opt/gnome/lib/libglib-2.0.so.0 #18 0xb7a1dcbf in g_main_context_check () from /opt/gnome/lib/libglib-2.0.so.0 #19 0xb7a1e069 in g_main_loop_run () from /opt/gnome/lib/libglib-2.0.so.0 #20 0xb7d289e4 in gtk_main () from /opt/gnome/lib/libgtk-x11-2.0.so.0 #21 0x08193770 in gui_mch_wait_for_chars (wtime=4000) at gui_gtk_x11.c:5834 #22 0x08185a2f in gui_wait_for_chars (wtime=-1) at gui.c:2624 #23 0x0817affd in ui_inchar (buf=0x82ace90 , maxlen=82, wtime=-1, tb_change_cnt=17) at ui.c:171 #24 0x080dce47 in inchar (buf=0x82ace90 , maxlen=0, wait_time=-1, tb_change_cnt=17) at getchar.c:2726 #25 0x080dec32 in vgetorpeek (advance=1) at getchar.c:2512 #26 0x080df62e in vgetc () at getchar.c:1472 #27 0x080df946 in safe_vgetc () at getchar.c:1603 #28 0x08125454 in normal_cmd (oap=0xbfc7ac08, toplevel=1) at normal.c:605 #29 0x080e9bca in main_loop (cmdwin=0) at main.c:2187 #30 0x080eb7d0 in main (argc=0, argv=0x0) at main.c:2005 (gdb) [EMAIL PROTECTED]:~ gvim --version VIM - Vi IMproved 6.4 (2005 Oct 15, compiled May 2 2006 09:49:20) Included patches: 1-6 Compiled by [EMAIL PROTECTED] Big version with GTK2 GUI. Features included (+) or not (-): +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv +cscope +dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang +netbeans_intg -osfiletype +path_extra +perl +postscript +printer +python +quickfix +rightleft -ruby +scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save system vimrc file: /etc/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc system gvimrc file: /etc/gvimrc user gvimrc file: $HOME/.gvimrc system menu file: $VIMRUNTIME/menu.vim fall-back for $VIM: /etc f-b for $VIMRUNTIME: /usr/share/vim/current Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12 -I/opt/gnome/include/gtk-2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -fno-strict-aliasing -fstack-protector-all -I/usr/X11R6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8/i586-linux-thread-multi/CORE -I/usr/include/python2.4 -pthread Linking: gcc
Re: matchparen bug?
On Tue, Jun 06, 2006 at 05:11:13PM +0300, Ilya wrote: Benji Fisher wrote: Perhaps you have set 'matchpairs' so that it does not include [:]? matchpairs does include [:] - as by default. And brackets are highlighted when cursor is near one of them. Since you snipped the three sample lines, here is another example: long line () another After going to long line and doing $iDown do you have the cursor after the parentheses, with the parentheses highlighted? Yes, I do. And after doing Down I have cursor after 'r' in 'another'. I am stumped. I tried it with $ vim -u NONE :set nocp :runtime plugin/matchparen.vim and I still get the cursor on the o in the third line. --Benji Fisher
cursor color change with mode in Linux console
A while back I posted a question asking how to have the cursor change color with mode in an xterm. The answer (thanks!) was :help termcap-cursor-shape and Vim 7. Now, wishing to have the same behavior in a Linux console, I try: if term =~ linux set t_ve+=^[[?17;206;99c let t_SI = \033[?17;28;9c let t_EI = \033[?17;206;99c endif ...but the cursor color doesn't change when switching to insert mode, it remains the color set here by set t_ve+=^[[?17;206;99c (Vim Tip #817). Issuing :set termcap at the vim command prompt shows t_SI=^[[?17;28;9c t_EI=^[[?17;206;99c Issuing echo -ne \033[?17;206;99c and echo -ne \033[?17;28;9c at the prompt in the console will change the cursor to green and blue, but I can't figure out how to make this happen with mode change in Vim. TIA for any suggestions, John
Re: how to fold lines not containing a pattern ?
excellent trick! (as usual) thanks a lot! On 6/5/06, Tim Chase [EMAIL PROTECTED] wrote: and how do I do if I want it to be case insensitive ? ie I want to detect Warning WARNING warning :help expr-=~? set foldmethod=expr foldexpr=getline(v:lnum)=~?'warning'?0:1 I also tried another approach of set foldexpr=(match(getline(v:lnum),'warning\\c')+1)?0:1 which also seems to do the trick. -tim -- Christian
RE: MatchParen unreadable on dark backgrounds
From: Benjamin Esham [mailto:[EMAIL PROTECTED] Sent: 03 June 2006 05:41 To: Yakov Lerner Cc: vim@vim.org Subject: Re: MatchParen unreadable on dark backgrounds Yakov Lerner wrote: Georg Dahn wrote: This depends on the color scheme you are using. If the maintainer does not update his color scheme, a default value is chosen. If the background is darkcyan, the highlight is not visible, of course, if the background is blue, then your value is a bad choice. I don't think any single colorscheme defines MatchParen. I haven't seen any single colorscheme that define MatchParen. Do they ? Biogoo (http://vim.sourceforge.net/scripts/script.php?script_id=432) defines these groups. It's quite a nice combination of colors, if I do say so myself ;-) /shameless plug Too bad that the screen shot in the above URL has invalid link problem. ---Zdenek
Re: MatchParen unreadable on dark backgrounds
Georg Dahn wrote: I use dark backgrounds (and therefore a light coloured foreground colour). As a consequence the new MatchParen highlight that is enabled by default in vim 7 is unreadable/annoying. I need to put the following in my ~/.vimrc to fix it: highlight MatchParen ctermbg=blue guibg=blue Shouldn't the above be done automatically when one does set bg=dark ? This depends on the color scheme you are using. If the maintainer does not update his color scheme, a default value is chosen. Sure. I use the default colour scheme though. I would have expected it to be updated for this new feature. thanks, Pádraig.
Re: MatchParen unreadable on dark backgrounds
Pádraig Brady wrote: Georg Dahn wrote: I use dark backgrounds (and therefore a light coloured foreground colour). As a consequence the new MatchParen highlight that is enabled by default in vim 7 is unreadable/annoying. I need to put the following in my ~/.vimrc to fix it: highlight MatchParen ctermbg=blue guibg=blue Shouldn't the above be done automatically when one does set bg=dark ? This depends on the color scheme you are using. If the maintainer does not update his color scheme, a default value is chosen. Sure. I use the default colour scheme though. I would have expected it to be updated for this new feature. thanks, Pádraig. The default colorscheme mentions no groups, it merely orders Vim to reset all groups whatsoever to their built-in defaults, so there is no need to update it. It's when you want to set _different_ colors than the built-in defaults that a :hi line is needed in the colorscheme. It is even possible to leave different groups at their default values depending on whether you run in the GUI or in a console: for instance: hi MatchParen ctermbg=blue hi Search gui=NONE guibg=Yellow guifg=Black leaves MatchParen at its default in the GUI, and Search at its default in console Vim. Best regards, Tony.
Re: MatchParen unreadable on dark backgrounds
Zdenek Sekera wrote: Benjamin Esham wrote: Biogoo (http://vim.sourceforge.net/scripts/script.php?script_id=432) defines these groups. It's quite a nice combination of colors, if I do say so myself ;-) /shameless plug Too bad that the screen shot in the above URL has invalid link problem. Fixed. Thanks for bringing it to my attention! Cheers, -- Benjamin D. Esham [EMAIL PROTECTED] | AIM: bdesham128 | Jabber: same as e-mail Wikipedia, the free encyclopedia•http://en.wikipedia.org PGP.sig Description: This is a digitally signed message part
Re: Copying everything (not the complete line, only the matching pattern) which matches a pattern
Did you try using the Pippo() function from foo.vim , as I suggested in my previous post? http://www.vim.org/script.php?script_id=72 HTH --Benji Fisher On Thu, Jun 01, 2006 at 10:13:22AM +0530, SHANKAR R-R66203 wrote: This is assuming that the each line has only one matching pattern. After hit and trial I have used the macro to do that. But want to have some cute solution. Regards, Shankar
Re: E108: No such variable: b:current_syntax (I'm an idiot)
On Mon, Jun 05, 2006 at 08:31:41PM -0400, Thomas Schumm wrote: On Monday 05 June 2006 08:01 pm, you wrote: So the question is: what have you been doing with $VIMRUNTIME/syntax/css.vim ? Nothing, unless my distro has been doing it behind my back. The only modifications I've made to the runtime files were to squash that error message. The reason I'm asking is cause I know I should't be modifying them. I did however find some files in my ~/.vim/syntax/ directory that I must have written some time ago when I was extremely drunk, because I have absolutely no recollection of writing them, even though they are full of my comments. Stubbing those out disappears the error. I'll have to try to figure out what the heck I was trying to do with them, but that's a personal problem and I don't think I need to waste any more of the list's time. :-) Just for future reference, you can use :scriptnames to help diagnose this sort of problem. HTH --Benji Fisher
RE: How do I get list of directory + how do I show them
Hello, thank you for you help. But to be more precious I want to have a list of that directory like mylist[0] = file1.cpp,v mylist[1] = file2.cpp,v ... I want to feed that list to my own vim function, which displays the log, check out by,... Best Regards Stefan -Original Message- From: Popovic Dan [mailto:[EMAIL PROTECTED] Sent: Friday, 2. June 2006 5:57 PM To: Charles E Campbell Jr; Mueller Stefan Cc: vim@vim.org Subject: Re: How do I get list of directory + how do I show them Hello dear Stefan, I had a few months ago a discussion in the vim-list wether it is possible to use VIM instead of a tool like Midnight Commander (I assume you're familiar with it 8-) ) for directory editing. (I just wanted to EDIT directories and their content from VIM). Maybe this could be of interest for you. Here's the search result link: http://search.gmane.org/?query=Midnight+Commanderemail=group=gmane.editors.vimsort=relevanceDEFAULTOP=and%5B=2xP=midnight.commander.xFILTERS=Geditors.vim---A or directly go to http://search.gmane.org and search for Midnight Commander written by Popovic Best regards, Dan -Ursprüngliche Nachricht- Von: Charles E Campbell Jr [EMAIL PROTECTED] Gesendet: 02.06.06 16:13:50 An: Mueller Stefan [EMAIL PROTECTED] CC: vim@vim.org Betreff: Re: How do I get list of directory + how do I show them Mueller Stefan wrote: Hello I have some questions: 1. How do I get a file list of directory, where the file have the extension like file.cpp,v ? 2. How do I show the list contents in current window? Just edit the directory. vim some/directory Regards, Chip Campbell -- Dan Popovic Klausenpfad 22; 69121 Heidelberg [EMAIL PROTECTED]; Tel. 06221/7282102 oder 01743036428 http://www.rzuser.uni-heidelberg.de/~dpopovi2/index.html __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Re: How do I get list of directory + how do I show them
On 6/6/06, Mueller Stefan [EMAIL PROTECTED] wrote: Hello, thank you for you help. But to be more precious I want to have a list of that directory like mylist[0] = file1.cpp,v mylist[1] = file2.cpp,v ... I want to feed that list to my own vim function, which displays the log, check out by,... Perhaps something like: let mylist = split(glob('/path/to/directory/*'), '\n') I'm sure there's something simpler.
Problem with NetRW scp:// and nonstandard ssh port
Hello List, let's say i've got a ssh daemon and want to connect it using scp:// in vim, i just get an error message that the hostname does not exist if i do the following: :e scp://[EMAIL PROTECTED]:/home/mh/foobar.txt Any hints for me where syntax could be wrong? using vim 7.0 by the way. Thanks in Advance Martin -- Martin Hauser [EMAIL PROTECTED] GPG-Encrypted mail preferred, KEY: 0D459A72 signature.asc Description: PGP signature
RE: Script dbext.vim no longer working with Vim 7.x?
-Original Message- From: Matthias Pitzl [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 8:37 AM To: vim@vim.org Subject: Script dbext.vim no longer working with Vim 7.x? Hello! I just installed the dbext.vim script as it's features really sound nice to me. Unfortunately i fail yet at the database connection dialogs. When running the :DBPromptForBufferParameters command i get following error messages: -- Please choose # of database type: 0. None 1. ASA 2. ASE 3. DB2 4. INGRES 5. INTERBASE 6. MYSQL 7. ORA 8. PGSQL 9. SQLSRV 10. SQLITE Error detected while processing function SNR8_DB_execFuncWCheck..SNR8_DB_resetBufferParameters..SN R8_DB_promptForParameters..SNR8_DB_getInput: line2: E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 Connection parameters have been defaulted Please choose # of database type: 0. None 1. ASA 2. ASE 3. DB2 4. INGRES 5. INTERBASE 6. MYSQL 7. ORA 8. PGSQL 9. SQLSRV 10. SQLITE Error detected while processing function SNR8_DB_execFuncWCheck..SNR8_DB_promptForParameters..SNR 8_DB_getInput: line2: E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 E180: Invalid complete value: -1 -- Does anyone of you know what's wrong here or if this nice sounding plugin just doesn't work with Vim 7.x yet? I thought I had already fixed this issue. It should be part of the dbext.vim 3.0 release. What version did you install? Did you also install the dependent script files from Hari? They are listed in the same page: Dbext.vim 3.0 - http://www.vim.org/scripts/script.php?script_id=356 Hari Krishna Dara's two plugins: multvals.vim (3.5.1) - http://www.vim.org/script.php?script_id=171 genutils.vim (1.10.1) - http://www.vim.org/script.php?script_id=197 Thanks, Dave
Re: laststatus=2 anomaly (was: I sometimes have to double strike when using gvim7 over Hummingbird Exceed)
Hi Eric, et al., Please see my comments below. On Fri, Jun 02, 2006 at 04:50 PM PDT, Eric Arnold wrote: EA On 6/2/06, Mun Johl [EMAIL PROTECTED] wrote: ... Text Deleted ... EA Sorry. I meant EA EA :call feedkeys( /3\CR, t) This executes fine. I can substitute any text for the 3 and it works fine. EA About ^R, you can type ^R in search/etc mode, and there are several EA things you can do from that point. See EA EA :h i_CTRL-R EA EA In the above case, ^R= should put you into expression evaluation EA mode, and you can type any expression, or your test string: EA EA aabbccddeeff This also works fine. As time permits, I'm still trying to narrow down my .gvimrc and .vimrc files to the minimum required to exhibit the problem--but I'm not there yet. Thanks. -- Mun
Re: syntax match question
I would like to match all options that start with a hyphen like: -one -two So all those would be a match from the - to the end of the word. Looks like a simple /\-\w\+\/ It makes some presumptions where your description falls silent. What constitutes a word for you? The vim defintion of a word is embodied by the \w atom. However, it includes numbers and an underscore. If that's no good, you can change the \w to the set of desired characters with a character-class /\-[a-zA-Z]\+\/ Adjust accordingly. -tim
Re: syntax match question
Tim Chase wrote: I would like to match all options that start with a hyphen like: -one -two So all those would be a match from the - to the end of the word. Looks like a simple /\-\w\+\/ It makes some presumptions where your description falls silent. What constitutes a word for you? The vim defintion of a word is embodied by the \w atom. However, it includes numbers and an underscore. If that's no good, you can change the \w to the set of desired characters with a character-class /\-[a-zA-Z]\+\/ Adjust accordingly. -tim A word can be anything really, so it would be from - to the end. So something like: syn match MyVarOption \-\w\+\ :Robert
Re: syntax match question
Robert Hicks wrote: Tim Chase wrote: I would like to match all options that start with a hyphen like: -one -two So all those would be a match from the - to the end of the word. Looks like a simple /\-\w\+\/ It makes some presumptions where your description falls silent. What constitutes a word for you? The vim defintion of a word is embodied by the \w atom. However, it includes numbers and an underscore. If that's no good, you can change the \w to the set of desired characters with a character-class /\-[a-zA-Z]\+\/ Adjust accordingly. -tim A word can be anything really, so it would be from - to the end. So something like: syn match MyVarOption \-\w\+\ :Robert I should say this is for a syntax file...so it needs to work from that. :Robert
Re: regex question
Eric Arnold wrote: Real close. Turns out I think I want: /\\%[directory]\{1,}\/ I suspect you want /\d\%[irectory]\/ Regards, Chip Campbell
Changing a long list of entries with corresponding index
Hi, I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = ABERFOYLE . . cities[2039] = ZURICH Is there a way I could issue a command (or some commands) and achieve the above? Thanks, Salman
Re: syntax match question
Robert Hicks wrote: A word can be anything really, so it would be from - to the end. So something like: syn match MyVarOption \-\w\+\ Unless - is part of normal keyword characters (see :he 'iskeyword'), the \- isn't going to help. Probably you want syn match MyVarOption \%(\s\|^\)\zs-\w\+\ Regards, Chip Campbell
Re: Changing a long list of entries with corresponding index
On 2006-06-06, Salman Mohsin [EMAIL PROTECTED] wrote: Hi, I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = ABERFOYLE . . cities[2039] = ZURICH Is there a way I could issue a command (or some commands) and achieve the above? :%s/.*/\='cities['.line(.).'] = '.submatch(0).'' The key here is the \=expression in the replacement string. See :help sub-replace-expression You can't mix replacement expressions with other forms of replacement string. That is, the replacement must start with \= and everything that follows must be part of that expression. Using an expression allows the use of functions such as line() to interpolate the current line number. submatch(0) returns the entire string matched by the pattern. See :help line() :help submatch() HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Wireless Division | Spokane, Washington, USA
Re: Changing a long list of entries with corresponding index
On Tue, 6 Jun 2006, Gary Johnson wrote: On 2006-06-06, Salman Mohsin [EMAIL PROTECTED] wrote: Hi, I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = ABERFOYLE . . cities[2039] = ZURICH Is there a way I could issue a command (or some commands) and achieve the above? :%s/.*/\='cities['.line(.).'] = '.submatch(0).'' The key here is the \=expression in the replacement string. See :help sub-replace-expression You can't mix replacement expressions with other forms of replacement string. That is, the replacement must start with \= and everything that follows must be part of that expression. Using an expression allows the use of functions such as line() to interpolate the current line number. submatch(0) returns the entire string matched by the pattern. See :help line() :help submatch() Adding to this, let's say you have ABERFOYLE on line 5, and ZURICH on line 2044, then this would do what you want: :5,2044s/.*/\='cities['.(line(.) - 5).'] = '.submatch(0).'' -- Gerald
Re: Changing a long list of entries with corresponding index
Salman Mohsin wrote: I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = ABERFOYLE . . cities[2039] = ZURICH Is there a way I could issue a command (or some commands) and achieve the above? The way I'd do it is to use a simple substitute and visincr.vim: :[range]s/^.*$/cities[0]= (goto the first 0 in the first cities[0] line, enter visual-block mode) ctrl-v (goto the last 0 in the last cities[0] line) :I Visincr.vim will transform the visual-block column of zeros into an incremented list. You can get visincr.vim from: http://vim.sourceforge.net/scripts/script.php?script_id=670 or the most up-to-date one from http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs (see Visual Incrementing). visincr.vim also supports date, dayname, monthname, and alphameric incrementing. Regards, Chip Campbell
Re: Problem with NetRW scp:// and nonstandard ssh port
On 6/6/06, Martin Hauser [EMAIL PROTECTED] wrote: Hello List, let's say i've got a ssh daemon and want to connect it using scp:// in vim, i just get an error message that the hostname does not exist if i do the following: :e scp://[EMAIL PROTECTED]:/home/mh/foobar.txt The right syntax seems to be: scp://[EMAIL PROTECTED]:#]port]/path Alternatively, you can put following lines into file $HOME/.ssh/ssh_config: Host 192.168.0.1 Port and that will make ssh/scp client to use port by default for this host. Yakov
Re: Changing a long list of entries with corresponding index
On Tue, 6 Jun 2006, Charles E Campbell Jr wrote: Salman Mohsin wrote: I have a long list of city names (more than 2,000 of them) in a file, each name on a separate line. I'd like to modify each line so that: ABERFOYLE . . ZURICH Becomes: cities[0] = ABERFOYLE . . cities[2039] = ZURICH Is there a way I could issue a command (or some commands) and achieve the above? The way I'd do it is to use a simple substitute and visincr.vim: :[range]s/^.*$/cities[0]= (goto the first 0 in the first cities[0] line, enter visual-block mode) ctrl-v (goto the last 0 in the last cities[0] line) :I Visincr.vim will transform the visual-block column of zeros into an incremented list. You can get visincr.vim from: http://vim.sourceforge.net/scripts/script.php?script_id=670 or the most up-to-date one from http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs (see Visual Incrementing). visincr.vim also supports date, dayname, monthname, and alphameric incrementing. Chip, Visincr pads trailing spaces as the number of characters needed to represent the end number increases. What I mean is, for the above example, we will be left with: cities[0 ] = ... . . cities[2039] = ... Could it be made to pad nothing? Or, in addition, even leading zeros/spaces/other characters? Also, are there plans for incrementing/decrementing hex octal? -- Gerald
RE: laststatus=2 anomaly (was: I sometimes have to double strike when using gvim7 over Hummingbird Exceed)
After taking a couple of helpful hints from Eric, and doing a bunch of experiments, I have isolated some odd behavior to 'laststatus'. As a reminder, this issue only shows up when I compile vim7 using GTK-1; it does not occur when I compile with Motif or GTK-2. My system is a Sun workstation running Solaris 8 and I use gcc 3.3.2 for compilation. The problem is that when I compile vim7 using GTK-1, certain characters need to be typed twice on the _search_ line. Note that it only appears as if the search line is affected. Text entry and command entry don't appear to be affected. If I set laststatus to 0 or 1, the problem goes away. If I set it to 2 again, the problem re-appears. This doesn't always occur either; some files edit just fine. So there is some other dependency as well it seems--but I haven't discovered that yet. But, when it does occur, changing laststatus to 0 or 1 always corrects the issue. Here's a sample of what I get when I type each letter in the English alphabet twice in a row (e.g.: aabbccddeeff...): abbcdeffgghijjkklmmnopqqrßtuvvww×yzz ^ | this is the greek Beta character (in case it got lost in the transmission) Notice how some characters only show up once, and the one greek character. Aha! That beta is actually a German SS, szlig; (sz ligature) iirr. The 'X' is a math times (times; no?). All the other (usually) vowels have similar compounding, eg, [aeiou] with accents of various types (try typing a' or a:, ferinstance), Polish l/ (slashed-ell, don't know the sgml entity offhand), Spanish n~ (en-tilde, ntilde;), and so on. Try some funky combinations like l/, n~, etc., and see what pops up. If this is the case, then I don't *think* it's an issue with 'vim', but something with the GTK1 compile, that maybe it includes as a bonus some cooked keystroke editing to be able to easily get weirdo characters right from the keyboard for functions like getc(), scanf(), etc. We may be on to something now... :D
Re: :ha printouts - fontsize
On Mon, Jun 05, 2006 at 03:11:08AM EDT, A.J.Mechelynck wrote: cga2000 wrote: [..] Well, here I am a comparatively new user of SuSE Linux, and I found it remarkably easy to compile Vim 7 on it. If you decide you want to try your hand at it, I was contemplating switching to gentoo at some point in the future. My understanding is that it is a source-packaged distro .. should make it easier to deal with compile-time customization. I've used SuSE (briefly) in the past and found it rather confusing - at the time. Among other things I had problems with the doc. It looked very nice at first glance but reading it was rather painful. Seems that rather than writing doc from scratch in English some non-native speakers had translated it from the original German doc.. Not sure.. I also found the curses config tools difficult to figure out. But then I prefer to do most configuration tasks by editing config files (things like fonts.. colors.. etc. are the exception because it's a trial and error process and some form of instant feedback is invaluable..) subscribe to the vim-dev list and ask advice there, I'll answer if no one else jumps in before me. Also, some day I should write a HowTo page for Vim on Unix, similar to the one I already have for Vim on Windows, and post it on my Vim site http://users.skynet.be/antoine.mechelynck/vim/ That would be very useful. The Vim book doesn't say much about these aspects and learning by just reading the Vim help is not very efficient.. for one you run into so much good stuff that you get sidetracked and forget what you were initially looking for. :-) Thanks Tony, I really appreciate all your help.. cga
Re: syntax match question
Hi, So you want something like: highlight all var options using this match syntax match allVarOptions \%(\s\|^\)\zs-\w\+ highlight the keywords within allVarOptions: note: because '-' is an iskeyword character, you have to use a match instead. syntax match allVarOptionKeywords contained containedin=allVarOptions \ \v%(command|fill|pady|padx|) Hope that helps, regards, Peter --- Robert Hicks [EMAIL PROTECTED] wrote: Charles E Campbell Jr wrote: Robert Hicks wrote: A word can be anything really, so it would be from - to the end. So something like: syn match MyVarOption \-\w\+\ Unless - is part of normal keyword characters (see :he 'iskeyword'), the \- isn't going to help. Probably you want syn match MyVarOption \%(\s\|^\)\zs-\w\+\ According to the isk help file - is a keyword character. I am trying to update the Tcl syntax file a bit. Tk has lots of options that start with the - character. I was hoping that the above would make it easy to highlight all of the options without a lot of fuss. Is it possible to create a keyword group and then do a match with those words and if they are prefixed with a - to color them a certain way? A couple of the actual ones would be: -command -menu -fill -pady -padx -tearoff -label -text -height -width -justify and the list goes on. And you can see why I was hoping a simple match would do it. :-) :Robert Send instant messages to your online friends http://au.messenger.yahoo.com