Re: Using py commands to evaluate text for balloon commands..

2006-05-24 Thread Yakov Lerner
On 5/24/06, Mohsin [EMAIL PROTECTED] wrote: I am trying to use the ':py' interface to evaluate text under cursor and show the result in a balloon text. I got the python and vim code to work easily, however I have problem communicating between the two (py and vim): 1. How do I access vim

RE: set readonly - strange?

2006-05-24 Thread Zdenek Sekera
-Original Message- From: Eric Arnold [mailto:[EMAIL PROTECTED] Sent: 23 May 2006 18:12 To: Yakov Lerner Cc: Zdenek Sekera; vim-dev@vim.org Subject: Re: set readonly - strange? As far as I can tell, there are several instances where there are transitory buffers as vim is

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Zdenek Sekera [EMAIL PROTECTED] wrote: -Original Message- From: Eric Arnold [mailto:[EMAIL PROTECTED] Sent: 23 May 2006 18:12 To: Yakov Lerner Cc: Zdenek Sekera; vim-dev@vim.org Subject: Re: set readonly - strange? As far as I can tell, there are several instances

RE: set readonly - strange?

2006-05-24 Thread Zdenek Sekera
-Original Message- From: Eric Arnold [mailto:[EMAIL PROTECTED] Sent: 24 May 2006 11:21 To: Zdenek Sekera Cc: Yakov Lerner; vim-dev@vim.org Subject: Re: set readonly - strange? On 5/24/06, Zdenek Sekera [EMAIL PROTECTED] wrote: -Original Message- From: Eric Arnold

Re: Using py commands to evaluate text for balloon commands..

2006-05-24 Thread Ilya
Yakov Lerner wrote: [...] Note that :py commands are not available in the sandbox. I dont know whether Balloon function is executed in the sandbox. Maybe it is not (then :py is available in the Balloon func), maybe it is (then :py is not available in the Balloon func). If you find out, I'm

RE: set readonly - strange?

2006-05-24 Thread Zdenek Sekera
-Original Message- From: Eric Arnold [mailto:[EMAIL PROTECTED] Sent: 24 May 2006 12:38 To: Zdenek Sekera Cc: vim-dev@vim.org Subject: Re: set readonly - strange? I think 'readonly' does not belong in the .vimrc since it is a buffer-local-only option. Yes, but I have only one

Re: set readonly - strange?

2006-05-24 Thread Yakov Lerner
On 5/24/06, Eric Arnold [EMAIL PROTECTED] wrote: I think 'readonly' does not belong in the .vimrc since it is a buffer-local-only option. If you try to set any other buffer-local option in .vimrc, you'll see that it works just fine. I tried 'set tw=22' in file opened as 'vim -u file file' and

Re: set readonly - strange?

2006-05-24 Thread Eric Arnold
On 5/24/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 5/24/06, Eric Arnold [EMAIL PROTECTED] wrote: I think 'readonly' does not belong in the .vimrc since it is a buffer-local-only option. If you try to set any other buffer-local option in .vimrc, you'll see that it works just fine. I tried

Re: Pattern questions

2006-05-24 Thread Benji Fisher
On Tue, May 23, 2006 at 02:22:32PM +0200, Zdenek Sekera wrote: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif 2. why when the pattern ends with '+' or '\+' do I get an error? Can you be more specific? I tried :let char = a :echo char =~

Re: please unsubscribe me

2006-05-24 Thread Benji Fisher
On Wed, May 24, 2006 at 12:33:50PM +0200, Ulrich Lauther wrote: As the automatic unsubscribing process does not seem to work and mail to [EMAIL PROTECTED] doesn't help either, could please some kind soul remove me from the list? I think that moving the vim mailing lists to a new server is

RE: Pattern questions

2006-05-24 Thread Zdenek Sekera
Hi, Benji On Tue, May 23, 2006 at 02:22:32PM +0200, Zdenek Sekera wrote: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]') do something endif 2. why when the pattern ends with '+' or '\+' do I get an error? Can you be more specific? I tried :let

Re: Pattern questions

2006-05-24 Thread Charles E Campbell Jr
Zdenek Sekera wrote: Sorry, I should have been clearer: Note the placement of the '+' in my pattern, somewhere in the middle, there it doesn't cause any problem: if (char =~ '\m[;|?:[EMAIL PROTECTED]*(){}\\_+-[\]/\]' ^ |

RE: Pattern questions

2006-05-24 Thread Zdenek Sekera
-Original Message- From: Charles E Campbell Jr [mailto:[EMAIL PROTECTED] Sent: 24 May 2006 15:55 To: Zdenek Sekera Cc: vim-dev@vim.org Subject: Re: Pattern questions Zdenek Sekera wrote: Sorry, I should have been clearer: Note the placement of the '+' in my pattern,

Re: [EMAIL PROTECTED]: vim7: formatoptions]

2006-05-24 Thread Charles E Campbell Jr
Benji Fisher wrote: Did you notice this thread on vim-dev? - Forwarded message from Thomas [EMAIL PROTECTED] - To: vim-dev@vim.org From: Thomas [EMAIL PROTECTED] Subject: vim7: formatoptions Date: Fri, 19 May 2006 13:48:51 +0200 I just realized that editing a directory removes

Re: netrw, winxp, and a problem...

2006-05-24 Thread Charles E Campbell Jr
A.J.Mechelynck wrote: Charles E Campbell Jr wrote: Hello, Tony! I've had several folks having a problem with WinXP and netrw. The problems seem to involve temporary files during attempts to use ftp; since temporary filenames are produced by tempname(), they're o/s dependent. Admittedly

Regression in gvim 7.0.00x

2006-05-24 Thread Luc Hermitte
Hello, I've been observing a regression on gvim since the release of vim 7.0. I'm observing it on gvim 7.0.000 on windows, gvim 7.0.015 (or 17, I do not remember) on Linux (gui=GTK2/Athena). It seems I do not have it with the console version on Linux -- I haven't had the opportunity to test the

Re: netrw, winxp, and a problem...

2006-05-24 Thread Steve Hall
On Wed, 2006-05-24 at 12:04 -0400, Charles E Campbell Jr wrote: A.J.Mechelynck wrote: Charles E Campbell Jr wrote: I've had several folks having a problem with WinXP and netrw. The problems seem to involve temporary files during attempts to use ftp; since temporary filenames are

Re: viminfo feature not working after upgrade from vim6.2-vim7.0

2006-05-24 Thread Srinivas Rao. M
Hi James , Mechelynck and Bram, What do you mean by code snippet here ?. Why is it not automatically not working in vim7.0. Why should there be extra work to be done ? Thanks, Srini... On Tue, 2006-05-23 at 17:50, James Vega wrote: On Tue, May 23, 2006 at 05:30:37PM +0530, Srinivas Rao. M wrote:

rdfinable boudaries of sections, paragraphs

2006-05-24 Thread Yakov Lerner
vim still doesn't have redefinable (per filetype) boundaries (like, regexp) for sections, paragraphs (and other text objects and motions), correct ? Yakov

Re: rdfinable boudaries of sections, paragraphs

2006-05-24 Thread Eric Arnold
I haven't used them, but Vim has options for 'paragraphs' , 'options', etc. They are global, but could be set by file type. They accept NROFF syntax instead of regex, so I don't know whether that's good enough or not. On 5/24/06, Yakov Lerner [EMAIL PROTECTED] wrote: vim still doesn't have

RE: How to get cygwin command line to know where it is - seems okay now

2006-05-24 Thread Furash Gary
All the suggestions worked. 1. I put everything in .bash_profile (just easier) 2. I have the following statements in my _vimrc set shell=C:/cygwin/bin/bash set shellxquote=\ set shellcmdflag=-c let $BASH_ENV='~/.bash_profile -Original Message- From: A.J.Mechelynck [mailto:[EMAIL

Line Numbers

2006-05-24 Thread Altman, Joel G. \(JSC-CC\)[LM]
In my old VIM version (5.4) I could put the line set nu in my .exrc file and have line numbers on the file I was editing. Since I upgraded to VIM 7.0, I've discovered no option for the .vimrc file to do the same thing. Have I missed something? Joel

Re: Line Numbers

2006-05-24 Thread Tim Chase
In my old VIM version (5.4) I could put the line set nu in my .exrc file and have line numbers on the file I was editing. Since I upgraded to VIM 7.0, I've discovered no option for the .vimrc file to do the same thing. Have I missed something? Putting the set nu in your vimrc *should* do

Re: viminfo feature not working after upgrade from vim6.2-vim7.0

2006-05-24 Thread Gerald Lai
On Wed, 24 May 2006, Srinivas Rao. M wrote: Thanks Tony, It works after adding those 4 lines into my ~/.vimrc. But i never used to do this in my older version of vim6.3. How come it used to work then ? It may be a possibility but check your system-wide .vimrc at /etc/vimrc for when you

vim7: broken bar separator after user commands

2006-05-24 Thread Hari Krishna Dara
This was working fine in Vim6.3, but in Vim7 I get E488. Here is how to reproduce: :command! TT :echo TT :TT | TT You get: E488: Trailing characters Looks like the user commands can't be followed by other commands anymore. -- Thanks, Hari __

Re: vim7: broken bar separator after user commands

2006-05-24 Thread Yegappan Lakshmanan
Hi Hari, On 5/24/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: This was working fine in Vim6.3, but in Vim7 I get E488. Here is how to reproduce: :command! TT :echo TT :TT | TT You get: E488: Trailing characters Looks like the user commands can't be followed by other commands anymore.

Re: vim7: broken bar separator after user commands

2006-05-24 Thread Hari Krishna Dara
On Wed, 24 May 2006 at 2:37pm, Yegappan Lakshmanan wrote: Hi Hari, On 5/24/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: This was working fine in Vim6.3, but in Vim7 I get E488. Here is how to reproduce: :command! TT :echo TT :TT | TT You get: E488: Trailing characters

Re: vim7: broken bar separator after user commands

2006-05-24 Thread A.J.Mechelynck
Hari Krishna Dara wrote: On Wed, 24 May 2006 at 2:37pm, Yegappan Lakshmanan wrote: Hi Hari, On 5/24/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: This was working fine in Vim6.3, but in Vim7 I get E488. Here is how to reproduce: :command! TT :echo TT :TT | TT You get: E488:

Please help

2006-05-24 Thread Tien Pham
Dear all I have a very large file containing 7000 lines of data in a single column. Below is a sample. Many of them are 7 digit numbers and others are 8 digit numbers. For those 7 digit numbers, I need to add number 0 at the beginning of it. Can someone please show me a command to do it all

Re: Please help

2006-05-24 Thread Ricky Zhou
On 5/24/06, Tien Pham [EMAIL PROTECTED] wrote: Dear all I have a very large file containing 7000 lines of data in a single column. Below is a sample. Many of them are 7 digit numbers and others are 8 digit numbers. For those 7 digit numbers, I need to add number 0 at the beginning of it. Can

Re: Please help

2006-05-24 Thread Gary Johnson
On 2006-05-25, Tien Pham [EMAIL PROTECTED] wrote: Dear all I have a very large file containing 7000 lines of data in a single column. Below is a sample. Many of them are 7 digit numbers and others are 8 digit numbers. For those 7 digit numbers, I need to add number 0 at the beginning of

Re: Please help

2006-05-24 Thread Steve Hall
On Thu, 2006-05-25 at 10:55 +1000, Tien Pham wrote: I have a very large file containing 7000 lines of data in a single column. Below is a sample. Many of them are 7 digit numbers and others are 8 digit numbers. For those 7 digit numbers, I need to add number 0 at the beginning of it. Can

Re: Please help

2006-05-24 Thread Tien Pham
Hi Ricky, Pete, Gary and Alan Wonderful, thanks all of you very much for your kind and prompt help. It works very well Pete. Regards tien At 11:07 AM 25/05/2006 +1000, Pete Johns wrote: On Thu, 2006-05-25 at 10:55:51 +1000, Tien Pham sent: Dear all Hi Tien I have a very large file

Re: vim7: broken bar separator after user commands

2006-05-24 Thread Hari Krishna Dara
On Thu, 25 May 2006 at 1:33am, A.J.Mechelynck wrote: Hari Krishna Dara wrote: On Wed, 24 May 2006 at 2:37pm, Yegappan Lakshmanan wrote: Hi Hari, On 5/24/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: This was working fine in Vim6.3, but in Vim7 I get E488. Here is how to

Working directory problems

2006-05-24 Thread Max Dyckhoff
Hi, I have some issues with the working directory in vim that I really cannot get to the bottom of. I have tried looking through the help, and I've searched the Interweb too, to no avail, so I thought I would turn to this trusty mailing list! I operate a single vim instance with multiple files

Re: Working directory problems

2006-05-24 Thread Eric Arnold
I'm not sure how your bound function works. Have you tried using fnamemodify() to manipulate the filename? You can use the :h option to strip the path, and :s?? to substitute the relative path. On 5/24/06, Max Dyckhoff [EMAIL PROTECTED] wrote: Hi, I have some issues with the working