vim-7.0.035 linux motif gui crashes immediately (test16)
hi, on linux-2.6.17.1 (ubuntu-6.06, core duo), vim-7.0.035 with motif/lesstif crashes immediately when :gui or -g is used (e.g. test16). or is it just me? the :version output and two examples are included below. cheers, raf :version VIM - Vi IMproved 7.0 (2006 May 7, compiled Jun 30 2006 18:30:11) Included patches: 1-35 Compiled by [EMAIL PROTECTED] Normal version with X11-Motif 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 +cursorshape +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 -mzscheme +netbeans_intg -osfiletype +path_extra -perl +postscript +printer -profile -python +quickfix +reltime -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: $VIM/vimrc user vimrc file: $HOME/.vimrc user exrc file: $HOME/.exrc system gvimrc file: $VIM/gvimrc user gvimrc file: $HOME/.gvimrc system menu file: $VIMRUNTIME/menu.vim fall-back for $VIM: /usr/local/share/vim Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -DFUNCPROTO=15 -DNARROWPROTO-g -O2 -I/usr/X11R6/include Linking: gcc -L/usr/X11R6/lib -L/usr/local/lib -o vim -lXmu -lXext -lXm -lnc urses -lgpm $ CC=-g configure --with-x --enable-gui=motif \ --enable-max-features --enable-multibyte $ make $ make test ... ../vim -u unix.vim -U NONE --noplugin -s dotest.in test16.in Vim: Caught deadly signal SEGV Vim: Finished. make[2]: *** [test16.out] Segmentation fault (core dumped) les:vim70 gdb src/vim src/testdir/core GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i486-linux-gnu...Using host libthread_db library /lib/tls/i686/cmov/libthread_db.so.1. Core was generated by `../vim -u unix.vim -U NONE --noplugin -s dotest.in test16.in'. Program terminated with signal 11, Segmentation fault. warning: Can't read pathname for load map: Input/output error. Reading symbols from /usr/lib/libXmu.so.6...done. Loaded symbols for /usr/lib/libXmu.so.6 Reading symbols from /usr/lib/libXext.so.6...done. Loaded symbols for /usr/lib/libXext.so.6 Reading symbols from /usr/lib/libXm.so.2...done. Loaded symbols for /usr/lib/libXm.so.2 Reading symbols from /lib/libncurses.so.5...done. Loaded symbols for /lib/libncurses.so.5 Reading symbols from /usr/lib/libgpm.so.1...done. Loaded symbols for /usr/lib/libgpm.so.1 Reading symbols from /lib/tls/i686/cmov/libc.so.6...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /usr/lib/libXt.so.6...done. Loaded symbols for /usr/lib/libXt.so.6 Reading symbols from /usr/lib/libX11.so.6...done. Loaded symbols for /usr/lib/libX11.so.6 Reading symbols from /usr/lib/libSM.so.6...done. Loaded symbols for /usr/lib/libSM.so.6 Reading symbols from /usr/lib/libICE.so.6...done. Loaded symbols for /usr/lib/libICE.so.6 Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libdl.so.2 Reading symbols from /usr/lib/libXau.so.6...done. Loaded symbols for /usr/lib/libXau.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/libXcursor.so.1...done. Loaded symbols for /usr/lib/libXcursor.so.1 Reading symbols from /usr/lib/libXrender.so.1...done. Loaded symbols for /usr/lib/libXrender.so.1 Reading symbols from /usr/lib/libXfixes.so.3...done. Loaded symbols for /usr/lib/libXfixes.so.3 Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2 Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done. Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1 Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2 Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2 #0 0xe410 in __kernel_vsyscall () (gdb) bt #0
vim mac close button state patch
Hi, this patch sets the close button state according to Indicating Changes With the Close Button in the Apple HIG ( http:// developer.apple.com/documentation/UserExperience/Conceptual/ OSXHIGuidelines/XHIGWindows/chapter_17_section_3.html ). I set the button state in gui_mch_flush(), if a buffer was changed then gui_mch_flush() will probably called...at least I couldn't find a better place to do this :-P Apply with -p0. Bye, Nico macclosebutton.patch.1 Description: Binary data
Re: insert space after comma based on context
Hello, * On Fri, Jun 30, 2006 at 09:03:57AM +0800, Dr Bean [EMAIL PROTECTED] wrote: Is there a way to not insert a space based on context around the cursor so that if the text before cursor is [xxx, or (xxx, no space will be inserted? He used the function InsertIfNotAfter() I define in my C++ ftplugin cpp_set.vim available in lh-cpp.tar.gz [1]. In your case, I guess it will look like: inoremap silent , \ c-r=InsertIfNotAfter(',', ', ', '[[(][^]]\+')cr Just for my own benefit, and to refresh my memory about what this means: It's a mapping to add a space after the comma, but only when the comma is not preceded by something the regex matches. I must admit I never remember which parameter is expanded when. If the pattern is matched, we expand the first parameter. The second otherwise. What the regex matches is an opening bracket or parenthesis followed by a number of non-closing-bracket characters. Shouldn't the closing parenthesis be included also in the regex? '[[(][^])]\+' Of course. You're right. -- Luc Hermitte http://hermitte.free.fr/vim/
Re: Disable Windows shortcuts in GVIM
That's it ... Thanks very much ! On 6/29/06, Tim Chase [EMAIL PROTECTED] wrote: How is it possible, using GVIM, to forbid Windows executing commands destinated to VIM? e.g CTRL-V (Virtual select) is interpreted as Paste by MS. CTRL-A as select all, ... How can I disable this, and retrieve unix-like behaviour in my gvim ? Likely your vimrc is directly or indirectly sourcing mswin.vim and to remedy the matter, just edit your vimrc file and remove the line that reads something like runtime mswin.vim or source mswin.vim Nuke the line, and you should be good to go. It might be slurped in indirectly via the example_vimrc.vim file, in which case you'll want to nuke/modify that instead. -tim -- Marc Demlenne
Preserving undo through save
Hello! I'm not sure if it was always the case or if this is a recent change (through vim 7). I am not able to undo anything after saving a file. Is this normal? What settings are involved? How can I change this behaviour? The help-file for undo is pretty silent regarding this. Regards, Thomas Engelke -- GPG-Key: tengelke.de/thomas_michael_engelke.asc
Re: Preserving undo through save
On 30 Jun 2006, Thomas Michael Engelke wrote: Hello! I'm not sure if it was always the case or if this is a recent change (through vim 7). I am not able to undo anything after saving a file. Is this normal? What settings are involved? How can I change this behaviour? The help-file for undo is pretty silent regarding this. Regards, Thomas Engelke That doesn't happen here. Anthony -- Anthony Campbell - [EMAIL PROTECTED] Microsoft-free zone - Using Linux Gnu-Debian http://www.acampbell.org.uk (blog, book reviews, on-line books and sceptical articles)
Get hold of a function name
Hi I use the script pydoc.vim (http://www.vim.org/scripts/script.php?script_id=910) to pull out the documentation of functions in python. It is a great script. One can use \pW or \pw to get the documentation of the function under the cursor (by using Word, word). Problem is that if one has the following code-line: re.search(re.sub( then \pW \pw will always look up re.search. I guess word doesn't care if there is a ( and takes everything. Is there a way to get the word to seperate words if there is a ( in between? I'm asking as I would like to be able to press say F6 or some other function key in insert mode and that I then call a macro that gets re.sub and then looks it up with Pydoc. An alternative solution which I would also like was if it was possible to get a system like the match paranteses so that when one type: re.search( re.search is looked up automatically and the help is displayed. And then as one write re.sub( re.sub help is displayed as one hit (. Like most modern IDE does. (To be very advanced it would be nice if one got the re.search help back when closing the ) for re.sub, but that is for later.) So I'm asking you vim-gurus out there for some hints on how to do this. I guess there is a simple way for some of the things that I don't know about. Thanks in advance Preben
Re: Preserving undo through save
2006/6/30, Michael Naumann [EMAIL PROTECTED]: Do you have :set hidden If not, you should. HTH, Michael On Friday 30 June 2006 11:59, Thomas Michael Engelke wrote: Hello! I'm not sure if it was always the case or if this is a recent change (through vim 7). I am not able to undo anything after saving a file. Is this normal? What settings are involved? How can I change this behaviour? The help-file for undo is pretty silent regarding this. I'm not sure if I made my problem perfectly clear. I have a file. I edit it, deleting a line. I can then u and Ctrl-R these changes to no end. I undo once and redo once, ending up with the original file. I use :w to save the buffer. I use u and get the message Bereits bei der ältesten Änderung (rougly: Already at oldest change). Edit: Amazing. Restarting vim did the trick. I'll keep my eyes open for another occurence. Problem solved. Regards, Thomas Engelke -- GPG-Key: tengelke.de/thomas_michael_engelke.asc
Re: Get hold of a function name
Preben Randhol [EMAIL PROTECTED] wrote on 30/06/2006 (13:01) : Hi I use the script pydoc.vim (http://www.vim.org/scripts/script.php?script_id=910) to pull out the documentation of functions in python. It is a great script. One can use \pW or \pw to get the documentation of the function under the cursor (by using Word, word). Problem is that if one has the following code-line: re.search(re.sub( then \pW \pw will always look up re.search. I guess word doesn't care if there is a ( and takes everything. Is there a way to get the word to seperate words if there is a ( in between? I'm asking as I would like to be able to press say F6 or some other function key in insert mode and that I then call a macro that gets re.sub and then looks it up with Pydoc. Sorry. I found the problem. It was a old script file I sourced that kept messing with my iskeyword. I'm however still interested if there is a way to do the automatic lookup when pressing (. Thanks in advance Preben
Problem doing diffs using win 2000
Hi, I just installed gvim70 (from the self-extracting exe) on WIN 2K system. Everything seems to work, exept the diff functionality. If I do a diff, e.g. C:\Programme\Vimvim _vimrc -d _vimrc.bak I get 2 Dateien zum Editieren Das angegebene Programm kann nicht ausgeführt werden. E97: Kann keine Differenz erstellen so Vim complains, that the diff program can't be executed. But the diff program is present (C:\Programme\Vim\vim70\diff.exe) and it works (I tried it manually from the commandline). Maybe there's a problem with diff under win2K? I've used the same installer executable to install gvim70 on some Win XP machines, and I did not have any problems with diff. Thanx in advance Wolfgang
s?
Hi, Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Thanks, Wim
Re: s?
Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) I'll admit that it took me a while (several years) to add it to my repertoire of actively used vim commands. I do use it these days, as it *does* cut off that extra keystroke. And, yes, I'm that lazy. :) Most often, I end up using it (s) when I need to alter the end of a word, such as removing a terminal ess or removing some punctuation and continuing editing from there. Tangentially, I still can't say I use S, as I find cc much easier...both to remember and to type. Just one perspective on the matter... -tim
Re: s?
Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Well, I use it when I want to replace a word that is for example 4 letters long. abcd efgh ijkl Suppose I want to replace efgh with something else. I place the cursor at the beginning of the word and type '4s'. The word disappears and ViM switches to the insert mode. -- Peter
Re: s?
On Friday 30 June 2006 15:16, Wim R. Crols wrote: Peter Slizik wrote: Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Well, I use it when I want to replace a word that is for example 4 letters long. abcd efgh ijkl Suppose I want to replace efgh with something else. I place the cursor at the beginning of the word and type '4s'. The word disappears and ViM switches to the insert mode. -- Peter Yes, I figured out that use, but isn't 'cw' always easier since you don't have to count? And when you need to only replace part, like replacing abcd in abcdef, then I'd rather use 'cfd'. Just my 2c of course. Wim cfd may be quite different from 4s in this example, esp. if you intend to repeat the replacement on other places with .. - Michael
Re: s?
I can't remember why or when (it was so long ago), but I've always used 's' and 'S' in 'vi'. It never really occured to me to use 'cl' instead. It was just another command in the list. It was part of the original 'vi', but I'm not sure if you meant that by 'put in to be complete'. It is no more enigmatic then a lot of things in 'vi' which are there just to make editing incrementally better. There's 'C' vs 'c$', 'D', 'G', 'Y', etc., all of which are redundant with combinations of other commands. On 6/30/06, Wim R. Crols [EMAIL PROTECTED] wrote: Hi, Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Thanks, Wim
strange :w behavior
I am having a strange issue with :w. Instead of just writing the whole buffer to the current file, it also creates another copy of the file. I don't think this is normal behavior. Is there a way to turn it off? I am running Vim 7.0 on XP. Dimitriy
Re: strange :w behavior
On 6/30/06, Dimitriy V. Masterov [EMAIL PROTECTED] wrote: I am having a strange issue with :w. Instead of just writing the whole buffer to the current file, it also creates another copy of the file. Copy where ? Under which name ? Yakov
Re: strange :w behavior
On 6/30/06, Dimitriy V. Masterov [EMAIL PROTECTED] wrote: I am having a strange issue with :w. Instead of just writing the whole buffer to the current file, it also creates another copy of the file. Copy where ? Under which name ? In the same directory, with the the same name, but a tilde added at the end, like file.txt~. This is called 'backup copy'. Check out these options: :he 'backup' :he 'writebackup; :he 'nobackup' :he 'backupdir' :he 'backupext' :he 'backupskip' :he 'backupcopy' Yakocv
Re: strange :w behavior
Great advice. Putting set nobackup in my _gvimrc remedies the problem. I believe that the underlying issue was the compatible setting. DVM
Any programs to format numbers out there?
Hi, When in vim, I often want to format numbers. For example, when editing a Verilog file, I want to quickly change 12345678 to 12_345_678 for readability; and when editing an email, sometimes I'd like to change 12345678 to 12,345,678 . I did a search for programs to format numbers, but didn't really find anything suitable. Before I take on the task myself, I thought I'd ask if anyone knows of any such program/script/plugin. Thanks in advance. Regards, -- Mun
Re: Any programs to format numbers out there?
Mun Johl typed (on Fri, Jun 30, 2006 at 03:43:34PM -0700): | Hi, | | When in vim, I often want to format numbers. For example, when editing | a Verilog file, I want to quickly change 12345678 to 12_345_678 for | readability; and when editing an email, sometimes I'd like to change | 12345678 to 12,345,678 . | | I did a search for programs to format numbers, but didn't really find | anything suitable. Before I take on the task myself, I thought I'd ask | if anyone knows of any such program/script/plugin. I have some accounting programs with give me large dollarcents amounts; I use sed to prettify them by adding commas. Play with this: echo '123456789876543.21' | sed ' : C /[0-9][0-9][0-9][0-9][,.]/s/ \([-+0-9]*[0-9]\)\([0-9][0-9][0-9][,.]\)/\1,\2/g t C ' -- JP == http://www.frappr.com/cusm ==