[BUG] Swap file searched for in the wrong place

2006-05-17 Thread Gautam Iyer
Hi All, I found the following bug: $ mkdir /tmp/foo $ touch /tmp/foo/bar $ cd /tmp/ $ ln -s foo/bar . $ vim bar Now type some text into bar, and then kill vim (say with kill -9) from a different terminal. Now when you type vim /tmp/bar it reports that a .swp file is found

Re: [BUG] Swap file searched for in the wrong place

2006-05-17 Thread James Vega
On Tue, May 16, 2006 at 11:19:57PM -0500, Gautam Iyer wrote: Now when you type vim /tmp/bar it reports that a .swp file is found and asks you about recovery. However when you press R for recovering the file, vim complains saying it can not find the swap file (probably because vim looks for the

Re: FW: [Vimoutliner] I have a windows installation issue.

2006-05-17 Thread Benji Fisher
Please take the time to edit out the parts we do not need to read. I just tried :tab split and I am about to yank this line. OK, I yanked it, did a gt back to the original tab, and now I will paste it: and I am about to yank this line. No problem. If this supposed bug is

Re: vim7: problem with regex subst and combining chars

2006-05-17 Thread Ron Aaron
Arrgh! I can't send this message to the list, for some reason! Maybe because it has strange characters in it? OK: you can download my test.zip from here: http://ronware.org/test.zip In it you will find a file 'test.txt' which is UTF8 and will tell you how to see the problem I am finding

Re: [BUG] Swap file searched for in the wrong place

2006-05-17 Thread Gautam Iyer
On Wed, May 17, 2006 at 10:31:55AM -0400, James Vega wrote: On Tue, May 16, 2006 at 11:19:57PM -0500, Gautam Iyer wrote: Now when you type vim /tmp/bar it reports that a .swp file is found and asks you about recovery. However when you press R for recovering the file, vim complains saying

Re: [BUG] Swap file searched for in the wrong place

2006-05-17 Thread A.J.Mechelynck
Gautam Iyer wrote: On Wed, May 17, 2006 at 10:31:55AM -0400, James Vega wrote: On Tue, May 16, 2006 at 11:19:57PM -0500, Gautam Iyer wrote: Now when you type vim /tmp/bar it reports that a .swp file is found and asks you about recovery. However when you press R for recovering the

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
Use the o command to switch positions of the cursor, and then move to the left. On 5/16/06, Gerald Lai [EMAIL PROTECTED] wrote: On Tue, 16 May 2006, Jared wrote: [snip] So, my question: is it somehow possible to be able to select the last character of a line when selecting from

About CursorHoldI , pumvisible()

2006-05-17 Thread ice_2001cn
au! CursorHoldI *.cpp nested call PreviewWord() func! PreviewWord() if pumvisible() call confirm('pumvisible') return endif call confirm(''+pumvisible()) endf I found, while I use c-xc-u for a cpp code completion, The code shown

Re: right-to-left text selection

2006-05-17 Thread Georg Dahn
Hi! So, my question: is it somehow possible to be able to select the last character of a line when selecting from right-to-left while using selection=exclusive? This can be done by doing :set virtualedit=onemore which allows the cursor to move just past the end of the line. This makes

Re: HTML editing with vim: where to start ?

2006-05-17 Thread John Love-Jensen
Hi Ivan, The FAQ contains some obscure information that goes beyond your average Vim cheat sheet. For the aforementioned average Vim cheat sheet... http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html --Eljay

Laungage

2006-05-17 Thread Jansen of Lorkeers, Richard
Hello, I have a general question, we now use the EDT editor (OPENVMS) for editing PASCAL. Is it possible to use VIM or PASCAL. Regards, Richard Jansen of Lorkeers

Re: echon space ?

2006-05-17 Thread Eric Arnold
redrawing doesn't help. In this case with getchar(), echon'ed trailing spaces are only shown after a non-space character is echon'ed afterwards. It's not a big deal, but I'm going to cc: [EMAIL PROTECTED] since I can't find any way to create a getchar() + prompt with trailing spaces. I'm

Re: Laungage

2006-05-17 Thread Andrei A. Voropaev
On Wed, May 17, 2006 at 01:23:37PM +0200, Jansen of Lorkeers, Richard wrote: I have a general question, we now use the EDT editor (OPENVMS) for editing PASCAL. Is it possible to use VIM or PASCAL. Depends on what you mean under use. Vim can edit any plain text files. Pascal program source is a

Re: HTML editing with vim: where to start ?

2006-05-17 Thread Mikolaj Machowski
Dnia wtorek, 16 maja 2006 14:17, Ivan Vecerina napisał: - get vim to automatically close/complete the innermost previously opened tag. What do you mean automatically?. You can do: inoremap / /c-xc-o Other things I don't know how to find is: how do I make sure that VIM finds the CSS

Re: HTML editing with vim: where to start ?

2006-05-17 Thread Mikolaj Machowski
Dnia wtorek, 16 maja 2006 18:37, A.J.Mechelynck napisał: Ivan Vecerina wrote: [...] For example, here are a few simple things I need to do all the time: [...] - get vim to automatically close/complete the innermost previously opened tag. [...] see the closeag.vim plugin,

Re: vim7: two issues with insert mode completion

2006-05-17 Thread Mikolaj Machowski
Dnia środa, 17 maja 2006 03:49, Hari Krishna Dara napisał: Very often, I record changes that involves i_^P, and see an issue replaying them in Vim7. Say, you have text such as: Noticed similar behaviour in command line completion. Up to Vim7 when you were recording into register went real

Re: SNR, maparg(), and UTF-8

2006-05-17 Thread Mikolaj Machowski
Dnia wtorek, 16 maja 2006 23:35, Luc Hermitte napisał: The problem has existed for a long time. The iconv() workaround works correctly with vim 7.0.012 on linux, but not with vim 7.0.000 (default win32 build) on windows. Do you have +iconv or +iconv/dyn in :version? For better work with

Multiline file appearing in one line under Vim

2006-05-17 Thread Baha-Eddine MOKADEM
Hi all, I have a file which behaves differently whether edited with win32 Notepad and gVim. When opened in notepad I got several lines, which is the most convenient layout for me, but when opened in gVim I got the file in only one line. I tried to set ff to dos but it does not have any effect.

Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Matthew Winn
On Wed, May 17, 2006 at 03:19:39PM +0200, Baha-Eddine MOKADEM wrote: I have a file which behaves differently whether edited with win32 Notepad and gVim. When opened in notepad I got several lines, which is the most convenient layout for me, but when opened in gVim I got the file in only one

Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Jonathon Merz
On 5/17/06, Baha-Eddine MOKADEM [EMAIL PROTECTED] wrote: Hi all, I have a file which behaves differently whether edited with win32 Notepad and gVim. When opened in notepad I got several lines, which is the most convenient layout for me, but when opened in gVim I got the file in only one line.

Re: gvim when x server is shut down

2006-05-17 Thread Dennis Nezic
On Tue, 16 May 2006 22:28:54 -0700 (PDT), Gerald Lai [EMAIL PROTECTED] wrote: On Wed, 17 May 2006, Dennis Nezic wrote: when i exit my wm (e16), since it doesn't (and shouldn't) close any other programs, gvim is stuck without an x server, and doesn't handle this loss gracefully.

Re: Calling through a function reference with a variable argument list

2006-05-17 Thread Bob Hiestand
On 5/16/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Tue, 16 May 2006 at 2:43pm, Bob Hiestand wrote: Hi all, I'm re-writing my cvscommand.vim plugin to handle both CVS and Subversion version control systems. I'm currently implementing some of the functionality through function

Re: SNR, maparg(), and UTF-8

2006-05-17 Thread hermitte
Yakov Lerner [EMAIL PROTECTED] wrote: On 5/17/06, Luc Hermitte [EMAIL PROTECTED] wrote: I have a problem with an old hack that works fine in latin1, but starts to cause problems in UTF-8. [...] What is quite odd is that I have a workaround on Linux (by calling iconv()) which has no,

Re: SNR, maparg(), and UTF-8

2006-05-17 Thread hermitte
Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia wtorek, 16 maja 2006 23:35, Luc Hermitte napisa³: The problem has existed for a long time. The iconv() workaround works correctly with vim 7.0.012 on linux, but not with vim 7.0.000 (default win32 build) on windows. Do you have +iconv or

Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Georg Dahn
Hi! My guess is: notepad breaks at column 1024. In notepad the first two lines of your file have exact 1024 characters. This could be a notepad limitation. Best wishes, Georg Baha-Eddine MOKADEM wrote: Hi all, I have a file which behaves differently whether edited with win32 Notepad and

Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Baha-Eddine MOKADEM
2006/5/17, Georg Dahn [EMAIL PROTECTED]: Hi! My guess is: notepad breaks at column 1024. In notepad the first two lines of your file have exact 1024 characters. This could be a notepad limitation. Best wishes, Georg Is there a way to make profit of this kind of limitation. Or is there a way

Re: Multiline file appearing in one line under Vim

2006-05-17 Thread Gerald Lai
On Wed, 17 May 2006, Baha-Eddine MOKADEM wrote: 2006/5/17, Georg Dahn [EMAIL PROTECTED]: Hi! My guess is: notepad breaks at column 1024. In notepad the first two lines of your file have exact 1024 characters. This could be a notepad limitation. Best wishes, Georg Is there a way to make

RE: Multiline file appearing in one line under Vim

2006-05-17 Thread Suresh Govindachar
On Wed, 17 May 2006, Baha-Eddine MOKADEM wrote: 2006/5/17, Georg Dahn [EMAIL PROTECTED]: My guess is: notepad breaks at column 1024. In notepad the first two lines of your file have exact 1024 characters. This could be a notepad limitation. Is there a way to make profit of this kind of

Re: gvim when x server is shut down

2006-05-17 Thread A.J.Mechelynck
Dennis Nezic wrote: On Tue, 16 May 2006 22:28:54 -0700 (PDT), Gerald Lai [EMAIL PROTECTED] wrote: On Wed, 17 May 2006, Dennis Nezic wrote: when i exit my wm (e16), since it doesn't (and shouldn't) close any other programs, gvim is stuck without an x server, and doesn't handle this loss

avoid :source error with 7.0 script in 6.x

2006-05-17 Thread Steve Hall
Is there a way to construct the code below to avoid the E193 :endfunction not inside a function error in Vim 6.4 when loading a Vim 7.0 script? This for-endfor construct produces the error: function! MyFunct() if v:version 700 return endif ... for i in

Saving over FTP with vim 7

2006-05-17 Thread Noah Sturr
I'm having an issue saving a file open for edit using the ftp://host mechanism. The steps are: open gvim.exe from the Windows command line open a file with :e ftp://hostname/path/file; proviide the username/password successfully after loading the file and saving write with :w After that I get an

Re: Saving over FTP with vim 7

2006-05-17 Thread Charles E Campbell Jr
Noah Sturr wrote: I'm having an issue saving a file open for edit using the ftp://host mechanism. The steps are: open gvim.exe from the Windows command line Hello! Please try my latest netrw; several changes have been made lately to help support Windows + cmd.exe users. Its available

Re: HTML editing with vim: where to start ?

2006-05-17 Thread Ivan Vecerina
Gerald Lai [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] : On Tue, 16 May 2006, Ivan Vecerina wrote: : You could read Bram Moolenaar's : Seven Habits of Effective Text Editing at: : http://www.moolenaar.net/habits.html A very good read indeed. : I think using matchit is one of

Re: avoid :source error with 7.0 script in 6.x

2006-05-17 Thread A.J.Mechelynck
Steve Hall wrote: Is there a way to construct the code below to avoid the E193 :endfunction not inside a function error in Vim 6.4 when loading a Vim 7.0 script? This for-endfor construct produces the error: function! MyFunct() if v:version 700 return endif ...

Re: Saving over FTP with vim 7

2006-05-17 Thread A.J.Mechelynck
Noah Sturr wrote: I'm having an issue saving a file open for edit using the ftp://host mechanism. The steps are: open gvim.exe from the Windows command line open a file with :e ftp://hostname/path/file; proviide the username/password successfully after loading the file and saving write with :w

Re: avoid :source error with 7.0 script in 6.x

2006-05-17 Thread Steve Hall
From: Yegappan Lakshmanan, May 17, 2006 5:01 PM On 5/17/06, Steve Hall [EMAIL PROTECTED] wrote: Is there a way to construct the code below to avoid the E193 :endfunction not inside a function error in Vim 6.4 when loading a Vim 7.0 script? [snip] What about doing the following? if

Re: Tables.

2006-05-17 Thread A.J.Mechelynck
cga2000 wrote: Does vim provide any form of native support for drawing tables? I have tried a couple of plugins and they don't seem to play well with my setup, presumably because I have temporarily switched my locale back from UTF-8 to en_US (due to problems with other applications that do are

RE: avoid :source error with 7.0 script in 6.x

2006-05-17 Thread Suresh Govindachar
Steve Hall wrote: Is there a way to construct the code below to avoid the E193 :endfunction not inside a function error in Vim 6.4 when loading a Vim 7.0 script? This for-endfor construct produces the error: function! MyFunct() if v:version 700 return endif

Re: avoid :source error with 7.0 script in 6.x

2006-05-17 Thread Hari Krishna Dara
On Wed, 17 May 2006 at 10:58pm, A.J.Mechelynck wrote: Steve Hall wrote: Is there a way to construct the code below to avoid the E193 :endfunction not inside a function error in Vim 6.4 when loading a Vim 7.0 script? This for-endfor construct produces the error: function!

Re: gvim when x server is shut down

2006-05-17 Thread Dennis Nezic
On Wed, 17 May 2006 10:21:41 -0500, Aaron Griffin [EMAIL PROTECTED] wrote: On 5/17/06, Dennis Nezic [EMAIL PROTECTED] wrote: On Tue, 16 May 2006 22:28:54 -0700 (PDT), Gerald Lai [EMAIL PROTECTED] wrote: You could try something like :au VimLeave * if v:dying | quitall! |

Re: SNR, maparg(), and UTF-8

2006-05-17 Thread Mikolaj Machowski
Dnia środa, 17 maja 2006 18:34, [EMAIL PROTECTED] napisał: Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia wtorek, 16 maja 2006 23:35, Luc Hermitte napisa?: The problem has existed for a long time. The iconv() workaround works correctly with vim 7.0.012 on linux, but not with vim 7.0.000

Re: colorscheme conversion script?

2006-05-17 Thread 'cga2000'
On Mon, May 15, 2006 at 10:08:03PM EDT, Suresh Govindachar wrote: Are you thinking of Gautam's xterm16 http://www.vim.org/scripts/script.php?script_id=795 ? No, I actually use the all-blue incarnation of his xterm16 colorscheme myself.. I have read the doc a couple of times, and I'm

RE: HTML editing with vim: where to start ?

2006-05-17 Thread David Fishburn
-Original Message- From: Mikolaj Machowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 6:57 AM To: vim@vim.org Subject: Re: HTML editing with vim: where to start ? Dnia wtorek, 16 maja 2006 18:37, A.J.Mechelynck napisał: Ivan Vecerina wrote: [...] For

Re: Tables.

2006-05-17 Thread cga2000
On Wed, May 17, 2006 at 05:13:46PM EDT, A.J.Mechelynck wrote: cga2000 wrote: Does vim provide any form of native support for drawing tables? I have tried a couple of plugins and they don't seem to play well with my setup, presumably because I have temporarily switched my locale back from

RE: About CursorHoldI , pumvisible()

2006-05-17 Thread David Fishburn
-Original Message- From: ice_2001cn [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 4:48 AM To: vim@vim.org Subject: About CursorHoldI , pumvisible() au! CursorHoldI *.cpp nested call PreviewWord() func! PreviewWord() if pumvisible() call

CurorLine, set cursorline: slow, slower, slowest ?!

2006-05-17 Thread Meino Christian Cramer
Hi, VIM has a neat feature to highlight the line the cursor is in. This makes reading wide texts easier. Unfortunatley (at least with my system) moving the cursor become very slow. Is there a way out (a config trich for example) or any other thing to get a fast cursor in a highlighted

RE: Tables.

2006-05-17 Thread Suresh Govindachar
cga2000 wrote: But I was not thinking of these tab stops.. more in the line of typewriter stuff, I guess. Creating an imap involving the following operations might do the job: ---set up the typewriter style tab-stops--- let twtabs=[3, 5, 10, 28, 40, 58] ---then imap

Re: right-to-left text selection

2006-05-17 Thread Eric Arnold
While the visual mode selection is active, hitting o moves to the opposite corner. If it isn't doing that for you, I'd check for vmap interference. 3. Changing the Visual area *visual-change* *v_o* o

Re: right-to-left text selection

2006-05-17 Thread A.J.Mechelynck
Jared wrote: On 5/17/2006 12:52 AM, Gerald Lai wrote: So, my question: is it somehow possible to be able to select the last character of a line when selecting from right-to-left while using selection=exclusive? The simplest work around is to hit ol (that's oh-el) to select that last

Re: right-to-left text selection

2006-05-17 Thread Jared
On 5/17/2006 11:11 PM, Eric Arnold wrote: While the visual mode selection is active, hitting o moves to the opposite corner. SNIP Keep in mind that it doesn't work the same with a selection made by the mouse, since that leaves it in select mode not visual mode, which has some properties

using variables in ! command

2006-05-17 Thread Jared
This should be really easy, but I can't find an example in the help that shows what I'm trying to do. I'm mapping an external command to a function key, but I can't figure out how to include a variable in the command. Specifically, I want to specify the %programfiles% directory. So far I've

ctrl+shift key mappings

2006-05-17 Thread Jared
Ok, this will be my last question for the night (promise!). I'd like to map separate commands to Ctrl-C and Ctrl-Shift-C. I've tried a couple different ways to do it, but this one seems like it should be most correct: vnoremap C-c +y vnoremap C-S-c ^Gol+y What's happening, though, is that the

is there any method to input chinese under cygwin console window?

2006-05-17 Thread hj
I find that the only method to input chinese in vim on a windows box is using gvim. And after pressing the ESCAPE switch to command mode, I must switch the input method into English. It is not so convenient. Is there any method to solve these problems?

Re: using variables in ! command

2006-05-17 Thread Jared
On 5/18/2006 12:08 AM, Yakov Lerner wrote: Try map F2 :exe :silent! start .isshelp cr Thanks for the reply, Yakov. However, that gives me an error message: E121: Undefined variable: isshelp E15: Invalid expression:silent! start .isshelp Any other ideas? -- Jared

Re: using variables in ! command

2006-05-17 Thread A.J.Mechelynck
Jared wrote: This should be really easy, but I can't find an example in the help that shows what I'm trying to do. I'm mapping an external command to a function key, but I can't figure out how to include a variable in the command. Specifically, I want to specify the %programfiles% directory.

Re: using variables in ! command

2006-05-17 Thread Jared
On 5/18/2006 12:31 AM, A.J.Mechelynck wrote: :exe 'silent ! start ' . $PROGRAMFILES . '\Inno Setup\Isetup.hlp' That did it! Thanks a bunch, Tony. -- Jared

Re: ctrl+shift key mappings

2006-05-17 Thread A.J.Mechelynck
Jared wrote: Ok, this will be my last question for the night (promise!). I'd like to map separate commands to Ctrl-C and Ctrl-Shift-C. I've tried a couple different ways to do it, but this one seems like it should be most correct: vnoremap C-c +y vnoremap C-S-c ^Gol+y What's happening,

Vim in combination with OpenVMS

2006-05-17 Thread Jansen of Lorkeers, Richard
I have a general question concerning installation of VIM on a OpenVMS systems. Who has experience with the installation of the software? Richard

I sometimes have to double strike when using gvim7 over Hummingbird Exceed

2006-05-17 Thread Mun Johl
Hi, This probably isn't a gvim issue, but I thought I'd ask the community for input since other avenues have not yet yielded positive results. Here's the issue: I am using Hummingbird Exceed 2006 to log into my Sun Sparc Solaris 8 system. From there, I am opening a gvim window which was

Re: ctrl+shift key mappings

2006-05-17 Thread Eric Arnold
On 5/17/06, Jared [EMAIL PROTECTED] wrote: Ok, this will be my last question for the night (promise!). I'd like to map separate commands to Ctrl-C and Ctrl-Shift-C. I've tried a couple different ways to do it, but this one seems like it should be most correct: vnoremap C-c +y vnoremap C-S-c

Re: using variables in ! command

2006-05-17 Thread Eric Arnold
This might have failed because of context. If you used g:isshelp, then it would probably be recognized, though I don't know the rest of the situation. On 5/17/06, Jared [EMAIL PROTECTED] wrote: On 5/18/2006 12:08 AM, Yakov Lerner wrote: Try map F2 :exe :silent! start .isshelp cr Thanks for