Re: [PATCH] cygwin: Trouble recognizing absolute path

2006-10-16 Thread Corinna Vinschen
On Oct 13 14:06, Gary Johnson wrote: I thought the purpose of Cygwin was to provide a Linux-like environment for applications, so that, for example, one could simply recompile under Cygwin an application written for Linux and not have to rewrite the file-handling routines to recognize DOS

Re: Patch 7.0.134

2006-10-16 Thread Hari Krishna Dara
On Mon, 16 Oct 2006 at 9:40pm, Bram Moolenaar wrote: Hari Krishna Dara wrote: On Sun, 15 Oct 2006 at 3:10pm, Bram Moolenaar wrote: Patch 7.0.134 Problem:Crash when comparing a recursively looped List or Dictionary. Solution: Limit recursiveness for comparing to 1000.

A small VIM patch

2006-10-16 Thread Martti Kuparinen
Please apply the attached patch to remove an invalid usage of the test command. I have tested this against VIM 7.0.121 in NetBSD pkgsrc. Martti $NetBSD: patch-ac,v 1.8 2006/10/16 17:00:29 martti Exp $ --- src/configure.in.orig 2006-10-16 19:41:43.0 + +++ src/configure.in

RE: vim and 64bit xp

2006-10-16 Thread Doug Cook
Shell extensions are very specific to a particular bitness of Windows. -- 32-bit DLLs can only load into 32-bit processes. -- 64-bit DLLs can only load into 64-bit processes. The default shell for Win64 is the 64-bit version of explorer.exe (this is configurable), and it will NOT load the 32-bit

VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread Kunapuli, Udaykumar
Hi, I am using VIM 7.0 on UNIX. I have files with extension .lib (*.lib files). VIM automatically thinks that it is a Cobol filetype. The file has nothing to do with Cobol. I have tried setting the following things in my .vimrc. au BufNewFile,BufRead *.lib set ft=text au

Re: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread panshizhu
Kunapuli, Udaykumar [EMAIL PROTECTED] 写于 2006-10-16 14:37:33: Hi, I tried editing the filetype.vim in the runtime directory and commenting the portion with the .lib extension. But it didn't work. Are you sure you had done it right? I removed the *.lib and it works. this is the filetype.vim

gvim-7-0-118.exe virus found??

2006-10-16 Thread Edward Wong
Dear all, Just tried downloading gvim-7-0-118 from sourceforge and AVG detects there is a trojan virus. Can it be a false alarm? Ed

Re: Version confusion

2006-10-16 Thread panshizhu
Meino Christian Cramer [EMAIL PROTECTED] 写于 2006-10-14 14:10:19: I myself use to update my vim source with the newest patches and download the runtime files on a regular base. Furthermore I download the newest CVS stuff from vim-ruby, the ruby support files for vim. How can I simplify the

Re: [SPAM?]Re: VIM as C++ IDE

2006-10-16 Thread Robert Cussons
This is brilliant, I've never used make from inside Vim before, please surpress your sniggersAs I am working on Linux with a microsoft ergonomic keyboard, I have an unused windows button or two, how would I map the right hand one to the same mapping as below, i.e. instead of F12? As KDE's

Re: VIM as C++ IDE

2006-10-16 Thread panshizhu
As far as I know Vim cannot recognize the Win key (Please correct me if I'm wrong). In fact, it isn't that difficult to type all those, so I'd refer to keep the :cope window on all the time, and I have the habit to input :w everytime I changed a new line. So all I need to do is to type :make,

Re: [SPAM?]Re: VIM as C++ IDE

2006-10-16 Thread Raimon Grau
On 10/16/06, Robert Cussons [EMAIL PROTECTED] wrote: This is brilliant, I've never used make from inside Vim before, please surpress your sniggersAs I am working on Linux with a microsoft ergonomic keyboard, I have an unused windows button or two, how would I map the right hand one to the

Re: VIM as C++ IDE

2006-10-16 Thread Robert Cussons
[EMAIL PROTECTED] wrote: As far as I know Vim cannot recognize the Win key (Please correct me if I'm wrong). In fact, it isn't that difficult to type all those, so I'd refer to keep the :cope window on all the time, and I have the habit to input :w everytime I changed a new line. So all I need

Re: problem compiling vim70.

2006-10-16 Thread Vigil
A friend had this problem on Ubuntu. I think it turned out that his LD_LIBRARY_PATH or equivalent wasn't pointing to the ncurses library for some reason. On Mon, 16 Oct 2006, Ajay Gupta wrote: no terminal library found checking for tgetent()... configure: error: NOT FOUND! You need to

Re: copy from pdfs

2006-10-16 Thread A.J.Mechelynck
Vim Visual wrote: Hi, is there a way to remove all those strange symbols (and substitute them with proper caracters) you get when you select a text section from a pdf file and try to paste it into a vim file? The fi and ` etc are unknown to vim and it refuses to paste them... For instance:

Re: copy from pdfs

2006-10-16 Thread Vim Visual
ah! I love you! you solved the problem! My encoding was set to UTF-8, though 2006/10/16, A.J.Mechelynck [EMAIL PROTECTED]: Vim Visual wrote: Hi, is there a way to remove all those strange symbols (and substitute them with proper caracters) you get when you select a text section from

Re: copy from pdfs

2006-10-16 Thread A.J.Mechelynck
Vim Visual wrote: ah! I love you! you solved the problem! My encoding was set to UTF-8, though then maybe your 'fileencodings' was wrong? (Setting 'encoding' to UTF-8 also sets 'fileencodings' to ucs-bom,utf-8,default,latin1 which helps recognise the encodings of Unicode files.)

Re: VIM as C++ IDE

2006-10-16 Thread panshizhu
Robert Cussons [EMAIL PROTECTED] 写于 2006-10-16 16:43:53: [EMAIL PROTECTED] wrote: As far as I know Vim cannot recognize the Win key (Please correct me if I'm wrong). In fact, it isn't that difficult to type all those, so I'd refer to keep the :cope window on all the time, and I have the

RE: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread Kunapuli, Udaykumar
Looks like it is hard-coded. No matter what I try, VIM does recognize *.lib as a cobol file. I have deleted the occurrence of cobol and .lib in the filetype.vim file. But of no use. In fact there is no occurrence of cobol in any of my runtime files. The irritating thing is the search pattern,

RE: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread panshizhu
Hi, You problem can be worked around with :set isk+=_ But your problem may be you are not changing the one Vim is sourceing, or if the settings are overrideed by future scripts. you have a filetype.vim in system wide $VIM directory or your ~/.vim directory or vimfiles/after directory? see :h

substitude, write and close with one command

2006-10-16 Thread Tomas Lovetinsky
Hi, I would like to ask you for help with my problem. I think it is simple but in fact I'm not able to find the solution as quickly as I need. I need to do sometink like :s/a/b/g :wq It means to substitute, write and close file. Is there any solution? Thank you all in advance Tomas

Re: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread A.J.Mechelynck
Kunapuli, Udaykumar wrote: Looks like it is hard-coded. No matter what I try, VIM does recognize *.lib as a cobol file. I have deleted the occurrence of cobol and .lib in the filetype.vim file. But of no use. In fact there is no occurrence of cobol in any of my runtime files. The irritating

Re: substitude, write and close with one command

2006-10-16 Thread A.J.Mechelynck
Tomas Lovetinsky wrote: Hi, I would like to ask you for help with my problem. I think it is simple but in fact I'm not able to find the solution as quickly as I need. I need to do sometink like :s/a/b/g :wq It means to substitute, write and close file. Is there any solution? Thank you all in

Re: substitude, write and close with one command

2006-10-16 Thread Gregory Margo
Most commands may be separated by a vertical bar (|), see :help :bar This will do what you want: :s/a/b/g | w | q On Mon, Oct 16, 2006 at 01:34:31PM +0100, Tomas Lovetinsky wrote: Hi, I would like to ask you for help with my problem. I think it is simple but in fact I'm not able to find

Re: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread Benji Fisher
On Sun, Oct 15, 2006 at 11:37:33PM -0700, Kunapuli, Udaykumar wrote: Hi, I am using VIM 7.0 on UNIX. I have files with extension .lib (*.lib files). VIM automatically thinks that it is a Cobol filetype. The file has nothing to do with Cobol. I have tried setting the following things in

Re: gvim-7-0-118.exe virus found??

2006-10-16 Thread Benji Fisher
On Mon, Oct 16, 2006 at 03:08:58PM +0800, Edward Wong wrote: Dear all, Just tried downloading gvim-7-0-118 from sourceforge and AVG detects there is a trojan virus. Can it be a false alarm? Ed Please be more specific. Can you give a link to the archive you downloaded? Or did you

Using output of Vim commands in scripts

2006-10-16 Thread Marius Roets
Hi everybody, Is it possible to use the output of Vim commands in a script? My specific problem currently is that I would like to use the output of :tabs in a script. I cannot find a Vim function that does the same as this command. Any ideas? Thanks Marius

auto mkview/loadview

2006-10-16 Thread Samuel Wright
Hi Guys, I used to have this in .vimrc autocmd BufWinLeave * mkview autocmd BufWinEnter * silent loadview to automatically save and load folds. I have recently added it again, but it does not seem to work in Vim 7 on Win XP. Have I missed anything obvious? Thanks Sam

Re: How to find a file.

2006-10-16 Thread Zheng Da
I have used your script, but it can't content me. I want to find the file under the current dir, its subdir or maybe its sub-subdir. So I hope while I'm inputting the filename, the popup menu should display the paths with the file, not the dir, containing the characters I input. -- With regards

Re: Compiling VIM with custom directories for libraries

2006-10-16 Thread Anupam Srivastava
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Allan Wind wrote: On 2006-10-16T03:03:30+0200, Anupam Srivastava wrote: So, I have downloaded and compiled ncurses in my local directory. Now I want Vim to detect this new library. How to do it? If you with library mean a .so, then including the

Re: gvim-7-0-118.exe virus found??

2006-10-16 Thread Paul Irofti
On Monday 16 October 2006 15:40, Benji Fisher wrote: On Mon, Oct 16, 2006 at 03:08:58PM +0800, Edward Wong wrote: Dear all, Just tried downloading gvim-7-0-118 from sourceforge and AVG detects there is a trojan virus. Can it be a false alarm? Ed Please be more specific. Can

cursor moves back with ESC

2006-10-16 Thread Lev Lvovsky
Hello, I've never actually figured out why upon after typing in insert mode, the cursor moves back one character to the left after pressing escape. What's the reason behind this, and is there any way to turn it off? thanks! -lev

Re: cursor moves back with ESC

2006-10-16 Thread Charles E Campbell Jr
Lev Lvovsky wrote: I've never actually figured out why upon after typing in insert mode, the cursor moves back one character to the left after pressing escape. What's the reason behind this, and is there any way to turn it off? To best understand this, one needs to use console vim.

Re: Using output of Vim commands in scripts

2006-10-16 Thread Mikolaj Machowski
Dnia poniedziałek, 16 października 2006 15:05, Marius Roets napisał: Hi everybody, Is it possible to use the output of Vim commands in a script? My specific problem currently is that I would like to use the output of :tabs in a script. I cannot find a Vim function that does the same as this

How to get vimspell.vim working?

2006-10-16 Thread Anupam Srivastava
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! I am working on Vim 6.0 and I cannot update. I am new to VIM. I have downloaded vimspell.vim from vim.org and copied it to ~/.vim/plugin It is installed as I can read :help vimspell But I don't get how to enable auto-spell check. Sorry for

Re: cursor moves back with ESC

2006-10-16 Thread Yakov Lerner
On 10/16/06, Lev Lvovsky [EMAIL PROTECTED] wrote: Hello, I've never actually figured out why upon after typing in insert mode, the cursor moves back one character to the left after pressing escape. What's the reason behind this, and is there any way to turn it off? IIRC there was a post some

Re: cursor moves back with ESC

2006-10-16 Thread Lev Lvovsky
On Oct 16, 2006, at 10:31 AM, Charles E Campbell Jr wrote: Seems a reasonable choice, to me. Any choice would be arbitrary. Now, to turn it off: don't use insert. Use append. if you mean 'a' as opposed to 'i' for the modes, it still does the same thing in my version. thanks, -lev

RE: VIM help for normal text files with extension .lib (on UNIX)

2006-10-16 Thread Kunapuli, Udaykumar
Thanks, it worked! Actually I was mistaken about the runtime path. I was changing the filetype.vim in the wrong location (in the directory where I untarred and unzipped the files). I did a :echo $VIM to find out the runtime path and it showed that the runtime path was in ~/share/vim/vim70. I

windows (was C++ IDE)

2006-10-16 Thread Brecht Machiels
Hello, I'm (very) slowly installing plugins and mapping keys to their functions. Currently I have the project and the taglist plugins configured. Window behaviour is a little annoying though. I want files to always open in the center window, not in the project window, the taglist window or

Re: Please Remove FTP File

2006-10-16 Thread Bram Moolenaar
Bill McCarthy wrote: The runtime directory doc (and dos/doc) contain both getscript.txt and the more recent pi_getscript.txt. The 'helptags' command doesn't like this :-) Please delete getscript.txt from both locations. Sorry about that. I'll fix the problem. -- hundred-and-one

Re: --enable-pythoninterp gives unrecognized option `-pthread' on MacOS X

2006-10-16 Thread Christian Ebert
* Bram Moolenaar on Friday, September 22, 2006 at 14:24:09 +0200: The configure script has a specific check for not adding -pthread on Mac OS/X. It looks like you used the --disable-darwin argument or somehow disabled Darwin in another way. Please check src/auto/config.log. I just found out

Re: Vim and foreign languages

2006-10-16 Thread Preben Randhol
On Mon, 16 Oct 2006 22:02:25 +0200 Preben Randhol [EMAIL PROTECTED] wrote: Hi I'm using Vim to write Greek text. I found a nice tip at: http://betabug.ch/blogs/ch-athens/270 on how to get Vim to accept greek letters as commands. Just using maps basicly so it is quite easy. Forgot to say

Undo between sessions

2006-10-16 Thread Max Dyckhoff
I am almost certain that this has been asked before, and I am almost sure that the answer is no, that would be silly, but I can't find anything in the archives, in :help or on Google in general. I am suffering the aftereffects of a bout of flu today, so perhaps I'm just being bad at searching.

Cannot compile vim 7.0

2006-10-16 Thread Anne Wall
Hello, I'm getting a parse error when I try to compile vim 7.0. I've tried installing the 7.0 release of vim on AIX 5.3. I get the following error: make install gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MOTIF -DFUNCPROTO=15 -O -I/usr/X11R6/include-oobjects/buffer.o

Re: Please Remove FTP File

2006-10-16 Thread Bill McCarthy
On Mon 16-Oct-06 2:40pm -0600, Bram Moolenaar wrote: Bill McCarthy wrote: The runtime directory doc (and dos/doc) contain both getscript.txt and the more recent pi_getscript.txt. The 'helptags' command doesn't like this :-) Please delete getscript.txt from both locations. Sorry about

Re: gvim-7-0-118.exe virus found??

2006-10-16 Thread A.J.Mechelynck
Benji Fisher wrote: On Mon, Oct 16, 2006 at 03:08:58PM +0800, Edward Wong wrote: Dear all, Just tried downloading gvim-7-0-118 from sourceforge and AVG detects there is a trojan virus. Can it be a false alarm? Ed Please be more specific. Can you give a link to the archive you

Re: Vim and foreign languages

2006-10-16 Thread A.J.Mechelynck
Preben Randhol wrote: Hi I'm using Vim to write Greek text. I found a nice tip at: http://betabug.ch/blogs/ch-athens/270 on how to get Vim to accept greek letters as commands. Just using maps basicly so it is quite easy. The problem is that I would like to be able to translate in insert mode

Re: cursor moves back with ESC

2006-10-16 Thread A.J.Mechelynck
Lev Lvovsky wrote: On Oct 16, 2006, at 10:31 AM, Charles E Campbell Jr wrote: Seems a reasonable choice, to me. Any choice would be arbitrary. Now, to turn it off: don't use insert. Use append. if you mean 'a' as opposed to 'i' for the modes, it still does the same thing in my version.

Re: Compiling VIM with custom directories for libraries

2006-10-16 Thread Gary Johnson
On 2006-10-16, Anupam Srivastava [EMAIL PROTECTED] wrote: Allan Wind wrote: On 2006-10-16T03:03:30+0200, Anupam Srivastava wrote: So, I have downloaded and compiled ncurses in my local directory. Now I want Vim to detect this new library. How to do it? If you with library mean a .so,

Re: How to find a file.

2006-10-16 Thread A.J.Mechelynck
Zheng Da wrote: I have used your script, but it can't content me. I want to find the file under the current dir, its subdir or maybe its sub-subdir. So I hope while I'm inputting the filename, the popup menu should display the paths with the file, not the dir, containing the characters I input.

Re: cursor moves back with ESC

2006-10-16 Thread Peter Hodge
--- Yakov Lerner [EMAIL PROTECTED] wrote: On 10/16/06, Lev Lvovsky [EMAIL PROTECTED] wrote: Hello, I've never actually figured out why upon after typing in insert mode, the cursor moves back one character to the left after pressing escape. What's the reason behind this, and is there

Re: cursor moves back with ESC

2006-10-16 Thread Lev Lvovsky
On Oct 16, 2006, at 4:33 PM, Peter Hodge wrote: You can also try: inoremap ESC ESCl which will work a little quicker in a terminal Vim. works great, thanks! -lev

Re: substitude, write and close with one command

2006-10-16 Thread Peter Hodge
--- Tomas Lovetinsky [EMAIL PROTECTED] wrote: Hi, I would like to ask you for help with my problem. I think it is simple but in fact I'm not able to find the solution as quickly as I need. I need to do sometink like :s/a/b/g :wq It means to substitute, write and close file. Hello, You

Re: gvim-7-0-118.exe virus found??

2006-10-16 Thread Steve Hall
On Tue, 2006-10-17 at 00:13 +0200, A.J.Mechelynck wrote: Benji Fisher wrote: On Mon, Oct 16, 2006 at 03:08:58PM +0800, Edward Wong wrote: Just tried downloading gvim-7-0-118 from sourceforge and AVG detects there is a trojan virus. Can it be a false alarm? Please be more

Re: gvim-7-0-118.exe virus found??

2006-10-16 Thread Edward Wong
Tony is right. I was downloading it from http://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721 The virus is Trojan horse Downloader.Zlob.CV Today I just try other different releases, and still find the same virus in gvim-7-0-135 and gvim-7-0-110. Thanks for the

Slightly OT: HELP! IDE ahead !

2006-10-16 Thread Meino Christian Cramer
Hi, Is it possible to convince kdevelop from using vim? I searched the web but the only source of information I found was of kvim -- and its homepage isn't there anymore. Any ideas? Thank you very much in advanve for any help! Keep hacking! mcc

replace using variable

2006-10-16 Thread Akbar
Hi, I have these words: p1. I am good/p p2. You sucks!/p p3. Take that, moron/p I want to change those sentences into: p id=11. I am good/p p id=22. You sucks!/p p id=33. Take that, moron/p How do I do that using vim replace command? All I can think is this: :%s/p\d/p id=\d\d/igc But that

Re: replace using variable

2006-10-16 Thread Peter Hodge
--- Akbar [EMAIL PROTECTED] wrote: Hi, I have these words: p1. I am good/p p2. You sucks!/p p3. Take that, moron/p I want to change those sentences into: p id=11. I am good/p p id=22. You sucks!/p p id=33. Take that, moron/p How do I do that using vim replace command? All I can

Re: Undo between sessions

2006-10-16 Thread Benji Fisher
On Mon, Oct 16, 2006 at 02:31:40PM -0700, Max Dyckhoff wrote: I am almost certain that this has been asked before, and I am almost sure that the answer is no, that would be silly, but I can't find anything in the archives, in :help or on Google in general. I am suffering the aftereffects of a

Re: How to find a file.

2006-10-16 Thread panshizhu
I guess this may not be all you want, for example, if you want to search files in ~/src, now you got a file in ~/src/abc/def/. Then your current directory is ~/src/abc/def/. and when you need to search within ~/src again to find something in ~/src/ghi/jkl/., how to do that? I recommend a