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

2006-05-23 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 vari

Using py commands to evaluate text for balloon commands..

2006-05-23 Thread Mohsin
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 variables in py commands (like text under cursor,

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

2006-05-23 Thread A.J.Mechelynck
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 without having searched th

Re: set readonly - strange?

2006-05-23 Thread Eric Arnold
As far as I can tell, there are several instances where there are transitory buffers as vim is starting, opening a new tab, probably some in closing op.s. I don't know if I used the right word by saying the buffer is "undefined", but I don't think it it's guaranteed to be usable until a certain p

Re: set readonly - strange?

2006-05-23 Thread Yakov Lerner
On 5/23/06, Zdenek Sekera <[EMAIL PROTECTED]> wrote: > create a file ~/.vimtest as follows: > > cat > .vimtest > set nocompatible > set readonly > > > and execute (g)vim: > > vim .vimtest -u .vimtest > > try :set readonly? and you'll get 'noreadonly'. The buffer does exist when initfile is exec

Re: set readonly - strange?

2006-05-23 Thread Eric Arnold
I wouldn't expect that to work. There is no defined loaded buffer when the -u vimrc is run. 'readonly' is local to buffers only, so in your example, it has no buffer to be applied to. If you want everything to be readonly, try setting a BufEnter autocommand. If you want just one file to be rea

set readonly - strange?

2006-05-23 Thread Zdenek Sekera
create a file ~/.vimtest as follows: cat > .vimtest set nocompatible set readonly and execute (g)vim: vim .vimtest -u .vimtest try :set readonly? and you'll get 'noreadonly'. Looks strange at the minimum, bug? ---Zdenek

RE: Pattern questions

2006-05-23 Thread Zdenek Sekera
> -Original Message- > From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] > Sent: 23 May 2006 14:22 > To: Zdenek Sekera > Cc: vim-dev@vim.org > Subject: Re: Pattern questions > > Zdenek Sekera wrote: > > I have this: > > > > if (char =~ '\m[;|<>?:[EMAIL PROTECTED]&*(){}\\_+-[\]/\"]') > > do

Re: Pattern questions

2006-05-23 Thread A.J.Mechelynck
Zdenek Sekera wrote: I have this: if (char =~ '\m[;|<>?:[EMAIL PROTECTED]&*(){}\\_+-[\]/\"]') do something endif Basically it is checking for all non-alphanumeric chars (expect '='). 1. how do I include the "'" char?. I can't seem to find a proper way. (I'd like to keep the patter in e

Pattern questions

2006-05-23 Thread Zdenek Sekera
I have this: if (char =~ '\m[;|<>?:[EMAIL PROTECTED]&*(){}\\_+-[\]/\"]') do something endif Basically it is checking for all non-alphanumeric chars (expect '='). 1. how do I include the "'" char?. I can't seem to find a proper way. (I'd like to keep the patter in enclosed in '...') 2.