Re: vim patch for cygwin

2007-04-17 Thread Luca Masini
Bram Moolenaar wrote: Why at the end of mch_FullName()? I would guess it needs to be done before this line: /* expand it if forced or not an absolute path */ if (force || !mch_isFullName(fname)) Ok. Luca. diff --recursive --unified vim70/src/os_unix.c vim70-patch/src/os_unix.c

suggestion

2007-04-17 Thread David Howland
Dear Vim gods, Please consider adding the following command to Vim: :bc (for buffer close) It acts just like :bd , except that if the buffer is in a split window, it does not remove the window. Thank you. Sincerely, dave

Re: how to avoid deleting the auto-indent in a new empty line when i press Esc

2007-04-17 Thread sun
You may even try (untested) :inoremap CRCR.BS With the mapping above, you don't have to add a character then delete it: you hit the Return key, and Vim (with 'nopaste') maps it to hit Return, hit dot, hit backspace, i.e., the insertion-deletion game is played automatically

Re: how to avoid deleting the auto-indent in a new empty line when i press Esc

2007-04-17 Thread Andy Wokula
Gary Johnson schrieb: On 2007-04-16, fREW [EMAIL PROTECTED] wrote: On 4/16/07, Tom Whittock [EMAIL PROTECTED] wrote: What I need is to always keep the auto-indented spaces. So next time I can start to insert from the spaced cursor. Alternatively use cc to edit the ostensibly blank line.

CLTR-N and enter

2007-04-17 Thread Eric Leenman
Hi, I'm using gvim 7.0 the word-completion function activated by CTRL-N. When selecting the right word by pressing CTRL-N to step trough the list I select the wanted word with pressing enter. This results in the right word, but also an extra carriage return. Is it possible to select the right

Re: CLTR-N and enter

2007-04-17 Thread Cyril Slobin
On 4/17/07, Eric Leenman [EMAIL PROTECTED] wrote: Is it possible to select the right word with another key then the enter-key, and thus staying on the same line before CTRL-N was pressed at all? Any key expect selection movement keys works. In particular, space key is my favorite. ;-) --

Re: CLTR-N and enter

2007-04-17 Thread homemr
On Tue, Apr 17, 2007 at 08:09:06AM +, Eric Leenman wrote: Hi, I'm using gvim 7.0 the word-completion function activated by CTRL-N. When selecting the right word by pressing CTRL-N to step trough the list I select the wanted word with pressing enter. This results in the right

Re: Fwd: Perl colour coding bug

2007-04-17 Thread Vigil
On Tue, 10 Apr 2007, Jon Combe wrote: The following snippet of code, when saved with a .pl file extension breaks the colour coding in Vim @split = split ( / |-|\/|\/ , $surname , -1 ); This sometimes annoys me, too. To work around it, use the 'm' operator specifically, thus: @split =

strange commenting behaviour (text gets deleted)

2007-04-17 Thread Daniel Nogradi
Hi vimmers, I have a very strange problem and couldn't figure out what's going on. I use the following function for commenting out a line or a block of lines: function! Komment2(commentLeader, commentTrailer) if match( getline(.), ^\ *$ ) 0 let save_cpo = cpoptions let

Re: Cream User Preferences

2007-04-17 Thread Steve Hall
On Mon, 2007-04-16 at 19:43 -0700, Barnaby Robson wrote: Specifically, if anyone would like to help I want to set Tab Expansion to always be on. Currently any time I switch windows, Tab Expansion turns itself off. (It remains checked in the menu, however) Turn on AutoWrap, this sets

Re: Cream User Preferences

2007-04-17 Thread Steve Hall
[Apologies, I just realized this message was to the Vim list.] Barnaby, Cream uses a separate lists: http://cream.sourceforge.net/about.html We try to avoid using Vim bandwidth on Cream configuration. On Tue, 2007-04-17 at 08:15 -0400, Steve Hall wrote: On Mon, 2007-04-16 at 19:43 -0700,

Re: CLTR-N and enter

2007-04-17 Thread Jean-Rene David
* Eric Leenman [2007.04.17 04:15]: Is it possible to select the right word with another key then the enter-key, and thus staying on the same line before CTRL-N was pressed at all? Yes, just continue typing... See: :h popupmenu-keys It defines the only keys which are special in the popup

Re: gvim: menu disappeared

2007-04-17 Thread A.J.Mechelynck
Guido Milanese wrote: I am sorry to ask such a stupid question, but I'm really puzzled. I have been using vim for ages now, and for some tasks, not always, I prefer a GUI. I use a Mandriva Linux distribution and it's all right. Suddendly the menu bar (not the toolbar with icons, the menu bar

Annoying insertion.

2007-04-17 Thread John R. Culleton
Recently gvim has had the annoying habit of inserting messages in the text of the document being edited, such as :confirm wqa Sometimes they are longer. Here is my user .gvimrc: version 7.0 if cp | set nocp | endif let s:cpo_save=cpo let cobol_legacy_code = 1 set cpovim set syntax=auto imap

Re: Annoying insertion.

2007-04-17 Thread John R. Culleton
On Tuesday 17 April 2007 11:45, Tim Chase wrote: Recently gvim has had the annoying habit of inserting messages in the text of the document being edited, such as :confirm wqa Sometimes they are longer. I don't see anything glaringly obvious in your supplied vimrc files that would

Re: Annoying insertion.

2007-04-17 Thread Tim Chase
Recently gvim has had the annoying habit of inserting messages in the text of the document being edited, such as :confirm wqa Sometimes they are longer. I don't see anything glaringly obvious in your supplied vimrc files that would trigger such behavior. However, there's a possiblity

Re: Annoying insertion.

2007-04-17 Thread Tim Chase
-does this happen in one particular type of file but not in others (such as in *.tex or *.xyz but not in others) Most of the files I edit are *.tex files so that is not much of a distinguishing mark. Ah well...perhaps a tex-filetype mapping? -does it only happen in one mode? (only in

Indenting behavior is different now that I've updated to vim7 from vim6, why?

2007-04-17 Thread Andrew Falanga
Hi, I recently upgraded from vim 6 to vim 7 on my Linux system at work. Because of how they have stuff configured here at the office, I had to install to my home directory instead of installing to the system. This, I don't think, has anything to do with the difficulty I'm having. int main( ) {

Re: strange commenting behaviour (text gets deleted)

2007-04-17 Thread Andy Wokula
Daniel Nogradi schrieb: Hi vimmers, I have a very strange problem and couldn't figure out what's going on. I use the following function for commenting out a line or a block of lines: function! Komment2(commentLeader, commentTrailer) if match( getline(.), ^\ *$ ) 0 let save_cpo =

search-related question

2007-04-17 Thread Hale Boyes, Kevin
How do I search in a document to the next line that doesn't contain a specific string? Something along the lines of grep -v. Thanks, Kevin. Using Vim/Gvim 7.0 This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for

Re: search-related question

2007-04-17 Thread Charles E Campbell Jr
Hale Boyes, Kevin wrote: How do I search in a document to the next line that doesn't contain a specific string? Something along the lines of grep -v. I suggest trying the LogiPat plugin. To do what you're asking with it: :LP !string It takes Boolean logic (!=not |=or =and ()s ) plus

Re: Annoying insertion.

2007-04-17 Thread John R. Culleton
On Tuesday 17 April 2007 12:25, Tim Chase wrote: -does this happen in one particular type of file but not in others (such as in *.tex or *.xyz but not in others) Most of the files I edit are *.tex files so that is not much of a distinguishing mark. Ah well...perhaps a tex-filetype

Re: Annoying insertion.

2007-04-17 Thread Tim Chase
With that knowledge, I'd go spelunking in the $VIMRUNTIME/ folders for the tex-related plugins/syntax/filetype files to see if there are map commands that should be nnoremap commands. Or perhaps you have some of your own additions under $HOME/.vim/ that might be bunging matters. -tim And what

Search for complex regex

2007-04-17 Thread Informationen
Hi, i have a html-file with footnotes converted to plain text and like to replace the footnotes in the text with the footnotetext many pages later, eg. the occurrence of [12] with the later definition (many pages later) like [12] bla bla bla. Does anybody has an idea, how to achieve this? Thanks

Re: Annoying insertion.

2007-04-17 Thread fREW
On 4/17/07, Tim Chase [EMAIL PROTECTED] wrote: With that knowledge, I'd go spelunking in the $VIMRUNTIME/ folders for the tex-related plugins/syntax/filetype files to see if there are map commands that should be nnoremap commands. Or perhaps you have some of your own additions under

Re: Search for complex regex

2007-04-17 Thread Tim Chase
i have a html-file with footnotes converted to plain text and like to replace the footnotes in the text with the footnotetext many pages later, eg. the occurrence of [12] with the later definition (many pages later) like [12] bla bla bla. Does anybody has an idea, how to achieve this? Without

Re: A nice efm for javac

2007-04-17 Thread Michael F. Lamb
I like to keep the name in, so that when later changes are suggested we know who wrote the original. I don't mind that either :) after the pointer line. That way, the unused error text between doesn't break vim's notion of a multi-line message and also doesn't force us to

Cscope find: help

2007-04-17 Thread Ashwin Bharambe
Hi, I would like to filter the results that cscope find sends using some pipe. For example, here's what I would like to do :cs find e word | grep -w word This way I can easily add in some things which cscope find doesn't do, sadly. What would be the best way to achieve this? Changing vim

[help]How to auto complete (),[]?

2007-04-17 Thread 陈方荣
Hi all, When type '(',how to autocommplete ')'?And move the cursor in the (_). Also the '{', autocommplete the '}' in a new line. And insert the cursor in a new line. Like this: { _ } Thanks. --- Best regards 陈方荣

Re: Cscope find: help

2007-04-17 Thread Gary Johnson
On 2007-04-17, Ashwin Bharambe [EMAIL PROTECTED] wrote: Hi, I would like to filter the results that cscope find sends using some pipe. For example, here's what I would like to do :cs find e word | grep -w word This way I can easily add in some things which cscope find doesn't do,

how to enable mouse in vim of cygwin

2007-04-17 Thread sun
hello, I know that both vim and gvim can jump from one window to another by clicking the mouse, also many other easy facilities. Here I am using cygwin under XP and my gvim works fine with mouse, but the vim doesn't in both cmd.ext environment and xterm cases. Please help me. Best Regards, sun

Re: how to enable mouse in vim of cygwin

2007-04-17 Thread A.J.Mechelynck
sun wrote: hello, I know that both vim and gvim can jump from one window to another by clicking the mouse, also many other easy facilities. Here I am using cygwin under XP and my gvim works fine with mouse, but the vim doesn't in both cmd.ext environment and xterm cases. Please help me. Best

Re: suggestion

2007-04-17 Thread A.J.Mechelynck
David Howland wrote: Dear Vim gods, Please consider adding the following command to Vim: :bc (for buffer close) It acts just like :bd , except that if the buffer is in a split window, it does not remove the window. Thank you. Sincerely, dave You mean if the buffer is displayed it would

Re: suggestion

2007-04-17 Thread Edward L. Fox
On 4/18/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: David Howland wrote: Dear Vim gods, Please consider adding the following command to Vim: :bc (for buffer close) It acts just like :bd , except that if the buffer is in a split window, it does not remove the window. Thank you.

Re: suggestion

2007-04-17 Thread David Howland
A.J.Mechelynck wrote: You mean if the buffer is displayed it would do nothing? No. Delete the buffer, but keep the window open. I often find myself in this situation: - Split window, two buffers open. - Open a new file, look at it, then want to close it. - i would expect to :bd to delete the

Re: suggestion

2007-04-17 Thread Yongwei Wu
Hi David, On 4/18/07, David Howland [EMAIL PROTECTED] wrote: A.J.Mechelynck wrote: You mean if the buffer is displayed it would do nothing? No. Delete the buffer, but keep the window open. I often find myself in this situation: - Split window, two buffers open. - Open a new file, look at

Re: [help]How to auto complete (),[]?

2007-04-17 Thread Winfred Lu
Please search before you ask. http://tech.groups.yahoo.com/group/vim/message/29162