Re: minor feature request: let!

2006-07-13 Thread justin constantino
On 7/9/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Justin Constantino wrote: Currently, if you try to assign a value to a variable with a different type, you get: E706: Variable type mismatch To make it work, you have to first unlet the variable, which is kind of annoying if the

Re: Gvim for KDE

2006-07-13 Thread Diwaker Gupta
i don't get it vim compiles for me just fine -- suse linux 10.0, using KDE, vim 7.0.35 -- am i missing something here? I think he meant a Vim GUI that is based on KDE/Qt rather than GNOME/GTK. Diwaker -- Web/Blog/Gallery: http://floatingsun.net/blog

Re: question for charles (or anyone): netrw whacking t

2006-07-13 Thread Benji Fisher
On Wed, Jul 12, 2006 at 01:24:51PM -0400, Charles E Campbell Jr wrote: Benji Fisher wrote: I think I see the problem. In $VIMRUNTIME/autoload/netrw.vim , in the function netrw#DirBrowse() , there are the lines if fo =~ '[ta]' set fo-=t set fo-=a echohl Warning echo

Re: How do I stop a mapping from looking like a mapping?

2006-07-13 Thread Yakov Lerner
On 7/13/06, Peter Hodge [EMAIL PROTECTED] wrote: However, if I type anything beginning with 'for', the letters disappear until I type something that is not part of the mapping. I understand this is the standard behaviour, but is there any way to change it so I can see what I am typing?

Re: matchit doesn't work for php

2006-07-13 Thread Pete Johns
On Thu, 2006-07-13 at 06:42:43 +0200, Cesar Romani sent: In the following function the bracket at 3 doesn't match the bracket at 17 And the bracket at 5 doesn't match the bracket at 8 I don't think matchit.vim is to blame here. I have tried your code with VIM - Vi IMproved 7.0 (2006 May 7,

Re: a question about subsitution....

2006-07-13 Thread Robert Cussons
Thanks Yakov, that was the explanation I wanted. Rob. Yakov Lerner wrote: On 7/12/06, Robert Cussons [EMAIL PROTECTED] wrote: Thanks Max and Chip, I didn't realis that \ and \ were used to denote the beginning and end of the word and therefore they could be used separately, I always just

cindent problem

2006-07-13 Thread Jÿffffe9rÿfffff4me Douillard
Hello, I have a problem when indenting C comments(cindent) I would like to have (I must fit to my company's coding rules): /* This is the comment */ But with cindent, I get : /* This is the comment */ == My */ is at the same indent level as the body. What should I set in gvim?

script installation from remote url

2006-07-13 Thread Yakov Lerner
I realize that installing scripts from remote URLs always have security considerations associated with it. Still, my question is: Let's say that somebody I trust published useful script (plugin) at some URL, like http://xyz. Is there any command or script, supposedly bundled with vim (?) that

ftplugin not detected

2006-07-13 Thread julien . r . nguyen
Hi everybody, ViM does not detect my ada ftplugin file in $HOME/.vim/ftplugin/ada.vim, though my runtimepath variable contains ~/.vim . If I source the file manually, my stuff does work. Has anyone an idea of what's wrong? Regards, Julien This message and any attachments (the message) is

Re: ANN: VST 1.0 Finally

2006-07-13 Thread sgp
I installed per provided instructions (WinXP) but when I type :Vst I get a bunch of error messages, mostly undefined variables: g:plinen_rez g:paras_rez g:ptype_rez etc. all of which are initialized in $VIM\vimfiles\autoload\vst\vst.vim but don't seem to be picked up when :Vst is executed.

Re: How do I stop a mapping from looking like a mapping?

2006-07-13 Thread Marc Weber
I'm even to lazy to type foreach. Thus I've defined mappings like this: inoremap buffer m-fm-e foreachspace... Makes total of 2 keys+ meta key. ;) with this mapping opens the ftp plugin file with _mw appended map m-s-fm-s-tm-s-p :exec 'e

Re: Awareness of python import semantics for [i, etc.?

2006-07-13 Thread Benji Fisher
On Wed, Jul 12, 2006 at 03:48:22PM -0700, John Reese wrote: So there's this handy [i command that, when filetype=c, displays the first line mentioning the identifier under the cursor, which will often be its definition. The especially handy thing about it is that it knows about #include lines

Re: matchit doesn't work for php

2006-07-13 Thread Benji Fisher
On Thu, Jul 13, 2006 at 06:42:43AM +0200, Cesar Romani wrote: In the following function the bracket at 3 doesn't match the bracket at 17 And the bracket at 5 doesn't match the bracket at 8 1 ?php 2 function test1($a,$b,$c,$d,$e,$f) 3 { 4 if($e=='hola') 5 { 6

Re: script installation from remote url

2006-07-13 Thread Benji Fisher
On Thu, Jul 13, 2006 at 09:26:16AM +, Yakov Lerner wrote: I realize that installing scripts from remote URLs always have security considerations associated with it. Still, my question is: Let's say that somebody I trust published useful script (plugin) at some URL, like http://xyz. Is

Re: script installation from remote url

2006-07-13 Thread Steve Hall
From: Yakov Lerner, Jul 13, 2006 5:26 AM I realize that installing scripts from remote URLs always have security considerations associated with it. Still, my question is: Let's say that somebody I trust published useful script (plugin) at some URL, like http://xyz. Is there any command or

Re: How do I stop a mapping from looking like a mapping?

2006-07-13 Thread Yakov Lerner
On 7/13/06, Yakov Lerner [EMAIL PROTECTED] wrote: :imap ctrl-Zf foreach Correction. I wanted to write: :imap c-Zf foreach Yakov

Re: How do I stop a mapping from looking like a mapping?

2006-07-13 Thread Hari Krishna Dara
On Thu, 13 Jul 2006 at 9:21am, Yakov Lerner wrote: On 7/13/06, Peter Hodge [EMAIL PROTECTED] wrote: However, if I type anything beginning with 'for', the letters disappear until I type something that is not part of the mapping. I understand this is the standard behaviour, but is

Re: How do I stop a mapping from looking like a mapping?

2006-07-13 Thread Yakov Lerner
On 7/13/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: On Thu, 13 Jul 2006 at 9:21am, Yakov Lerner wrote: On 7/13/06, Peter Hodge [EMAIL PROTECTED] wrote: However, if I type anything beginning with 'for', the letters disappear until I type something that is not part of the mapping. I

Re: script installation from remote url

2006-07-13 Thread Mikolaj Machowski
Dnia czwartek, 13 lipca 2006 11:26, Yakov Lerner napisał: If not, then what's the closest existing thing to such :InstallScript functionality ? You have also GetLatestVimScripts. But this is targeted directly to vim-online. m.

seaching for selected multiline expression

2006-07-13 Thread J.Hofmann
Hello, I have a mapping which immediately searches for visually selected items. It achieves this by yanking the selected text and exec[utes] a search for the register content This works so far. vmap / y:execute /.escape(@,'[]/\.*')CR Now I tried this first time for multiline selects, but it

taming omni completion

2006-07-13 Thread Maciej Kalisiak
I'm using Vim 7.0 on WinXP SP2. I don't think I did anything specific to turn on omni-completion (perhaps it's on by default? I'm editing Python files), and I'm in no rush to start using it, although if it was non-intrusive I wouldn't mind leaving it on. The problem is that I've recently

Re: seaching for selected multiline expression

2006-07-13 Thread Benji Fisher
On Thu, Jul 13, 2006 at 06:02:40PM +0200, [EMAIL PROTECTED] wrote: Hello, I have a mapping which immediately searches for visually selected items. It achieves this by yanking the selected text and exec[utes] a search for the register content This works so far. vmap / y:execute

Re: taming omni completion

2006-07-13 Thread Hari Krishna Dara
On Thu, 13 Jul 2006 at 12:04pm, Maciej Kalisiak wrote: I'm using Vim 7.0 on WinXP SP2. I don't think I did anything specific to turn on omni-completion (perhaps it's on by default? I'm editing Python files), and I'm in no rush to start using it, although if it was non-intrusive I wouldn't

Re: taming omni completion

2006-07-13 Thread Maciej Kalisiak
On 13/07/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: You are probably talking about the insert-mode completion rather than the omni-completion. Omni completion is meant is similar to the MS intellisense, and is not turned on by default. Ahhh, I see, yes, I think you're right. But is there

Re: auto upper/lower in replace pattern based on search pattern?

2006-07-13 Thread Marshall Abrams
Thanks--keepcase.vim is great. So now with :%s/firstname/\=KeepCase(submatch(0), 'LastName')/ig I can replace all instances of firstname with lastname firstName with lastName FirstName with LastName But \=KeepCase(submatch(0), '') is a mouthful. Not a problem;

Mapping using Let in Autocmd

2006-07-13 Thread JD Miller
Comment out a line by inserting # then move to the lower line map F10 i# Eschj Here I try to do the same thing but use the BufEnter event to make the comment character change depending on the file type (*.asp). let comment_char=# autocmd BufEnter *.asp let comment_char=' execute map F10 i

Function To Search Directory And Display File List

2006-07-13 Thread Tom Purl
Hi, I'm a Vim scripting newbie, and had a pretty general question. I'm would like to write a function that does the following: 1. Searches a directory for all files that end in the string Template 2. Return those file names to the user as chooseable list, similar to the way that the spell

Re: taming omni completion

2006-07-13 Thread Hari Krishna Dara
On Thu, 13 Jul 2006 at 1:15pm, Maciej Kalisiak wrote: On 13/07/06, Hari Krishna Dara [EMAIL PROTECTED] wrote: You are probably talking about the insert-mode completion rather than the omni-completion. Omni completion is meant is similar to the MS intellisense, and is not turned on by

Re: Mapping using Let in Autocmd

2006-07-13 Thread Hari Krishna Dara
On Thu, 13 Jul 2006 at 10:37am, JD Miller wrote: Comment out a line by inserting # then move to the lower line map F10 i# Eschj Here I try to do the same thing but use the BufEnter event to make the comment character change depending on the file type (*.asp). let comment_char=#

Re: Function To Search Directory And Display File List

2006-07-13 Thread Hari Krishna Dara
On Thu, 13 Jul 2006 at 12:58pm, Tom Purl wrote: Hi, I'm a Vim scripting newbie, and had a pretty general question. I'm would like to write a function that does the following: 1. Searches a directory for all files that end in the string Template 2. Return those file names to the user as

Re: Function To Search Directory And Display File List

2006-07-13 Thread Tim Chase
1. Searches a directory for all files that end in the string Template 2. Return those file names to the user as chooseable list, similar to the way that the spell checker functionality works when you use the z= command. Well, as an ugly first-pass hack: :let s = expand(*template) :echo

How to Override Backup Control to Implement File Versioning?

2006-07-13 Thread Robert Ingraham
Hi, I've read through the manual and checked out the FAQ, but I can't see how to implement file versioning in Vim. What I'd like to do is mimic the VMS file versioning feature wherein if you edit a file (say, file.txt) , the original is saved as file.txt.1. Subsequent backups of the same file

How to Override Backup Control to Implement File Versioning?

2006-07-13 Thread Robert Ingraham
Hi, I've read through the manual and checked out the FAQ, but I can't see how to implement file versioning in Vim. What I'd like to do is mimic the VMS file versioning feature wherein if you edit a file (say, file.txt) , the original is saved as file.txt.1. Subsequent backups of the same file

Re: Function To Search Directory And Display File List

2006-07-13 Thread Tom Purl
From your description, it is not clear if this will be part of a larger script that you are developing. If all that you want to do is ability to search and open the file, one of the existing plugins might be able to help you. I'm adding a function to the potwiki script so that I can create a

Re: Function To Search Directory And Display File List

2006-07-13 Thread Tom Purl
1. Searches a directory for all files that end in the string Template 2. Return those file names to the user as chooseable list, similar to the way that the spell checker functionality works when you use the z= command. Well, as an ugly first-pass hack: :let s = expand(*template) :echo

Re: taming omni completion

2006-07-13 Thread Bram Moolenaar
Maciej Kalisiak wrote: I'm using Vim 7.0 on WinXP SP2. I don't think I did anything specific to turn on omni-completion (perhaps it's on by default? I'm editing Python files), and I'm in no rush to start using it, although if it was non-intrusive I wouldn't mind leaving it on. The problem

Re: How to Override Backup Control to Implement File Versioning?

2006-07-13 Thread Yakov Lerner
On 7/13/06, Robert Ingraham [EMAIL PROTECTED] wrote: Hi, I've read through the manual and checked out the FAQ, but I can't see how to implement file versioning in Vim. What I'd like to do is mimic the VMS file versioning feature wherein if you edit a file (say, file.txt) , the original is

Re: How to Override Backup Control to Implement File Versioning?

2006-07-13 Thread Bob Hiestand
On 7/13/06, Robert Ingraham [EMAIL PROTECTED] wrote: What I'd like to do is mimic the VMS file versioning feature wherein if you edit a file (say, file.txt) , the original is saved as file.txt.1. Subsequent backups of the same file are saved as file.txt.2, file.txt.3 and so forth. In this case,

Re: seaching for selected multiline expression

2006-07-13 Thread Gary Johnson
On 2006-07-13, [EMAIL PROTECTED] wrote: Hello, I have a mapping which immediately searches for visually selected items. It achieves this by yanking the selected text and exec[utes] a search for the register content This works so far. vmap / y:execute /.escape(@,'[]/\.*')CR Now I

Re: Awareness of python import semantics for [i, etc.?

2006-07-13 Thread Gary Johnson
On 2006-07-13, Benji Fisher [EMAIL PROTECTED] wrote: On Wed, Jul 12, 2006 at 03:48:22PM -0700, John Reese wrote: So there's this handy [i command that, when filetype=c, displays the first line mentioning the identifier under the cursor, which will often be its definition. The especially

Re: taming omni completion

2006-07-13 Thread Hari Krishna Dara
On Thu, 13 Jul 2006 at 10:36pm, Bram Moolenaar wrote: [snip] Hmm, perhaps you are not talking about omni completion but about normal Insert mode completion. This now scans other files sooner than in previous versions, so that the menu can be filled. Note that you don't have to wait for

Re: Mapping using Let in Autocmd

2006-07-13 Thread JD Miller
Thanks much Hari, I added a space before the Esc and your method works nicely. map F1 iC-R=comment_charCR Eschj Jim -- View this message in context: http://www.nabble.com/Mapping-using-Let-in-Autocmd-tf1938850.html#a5318140 Sent from the Vim - General forum at Nabble.com.

Motions in visual(line|block)

2006-07-13 Thread Max Dyckhoff
I've noticed that using some motions - specifically i{ and suchlike - will cancel a visual line/block and turn it into regular visual mode instead, which is rather annoying. Is this intentional, or a bug? I should just mention that my new favourite command is =a{, which makes me smile every time

Re: taming omni completion

2006-07-13 Thread Maciej Kalisiak
On 13/07/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Hmm, perhaps you are not talking about omni completion but about normal Insert mode completion. Thanks to Hari's post earlier, I now believe so, yes. This now scans other files sooner than in previous versions, so that the menu can be

Sudden problem with: exe set listchars=tab:\xbb\xb7,trail:\xb7

2006-07-13 Thread Yakov Lerner
I always had this line in my vimrc: exe set listchars=tab:\xbb\xb7,trail:\xb7 (It is equivalent to set listchars=tab:»·,trail:·) Suddenly his line stopped working. (I didn't change it) It assigns now empty value to listchars: set listchars? listchars=tab:,trail: Command

Re: How do I stop a mapping from looking like a mapping?

2006-07-13 Thread Peter Hodge
Hi Hari, Yakov, Thank you very much for your help! Yakov, thank you for an effective solution, Hari thank you for providing such a flexible way to use it! kind regards, Peter On Yahoo!7 Dating: It's free to join and check

Re: Autoselect language for spell

2006-07-13 Thread Luis A. Florit
* El 12/07/06 a las 23:34, Stefan Karlsson chamullaba: Is there an easy way to autoselect language for the builtin spell checker in vim 7.0? Vimspell plugin has this functionality: the plugin looks for a specified number of lines and try to guess which language should it use.

Can't put text with P, but p still works

2006-07-13 Thread Dr Bean
map P reveals no mappings. This is the vim on Fedora Core 3. :version VIM - Vi IMproved 6.3 (2004 June 7, compiled Oct 19 2004 17:17:57) 適用済パッチ: 1-21, 23-24, 26, 28-30 Modified by [EMAIL PROTECTED] Compiled by [EMAIL PROTECTED] Huge 版 without GUI. 機能の一覧 有効(+)/無効(-) +arabic +autocmd

Re: Sudden problem with: exe set listchars=tab:\xbb\xb7,trail:\xb7

2006-07-13 Thread James Vega
On Fri, Jul 14, 2006 at 02:29:49AM +0300, Yakov Lerner wrote: I always had this line in my vimrc: exe set listchars=tab:\xbb\xb7,trail:\xb7 (It is equivalent to set listchars=tab:»·,trail:·) Suddenly his line stopped working. (I didn't change it) It assigns now empty value to listchars:

R: matchit doesn't work for php

2006-07-13 Thread Cesar Romani
-Messaggio originale- Da: Benji Fisher [mailto:[EMAIL PROTECTED] Inviato: giovedì 13 luglio 2006 15.35 A: vim Cc: Dan Sharp Oggetto: Re: matchit doesn't work for php On Thu, Jul 13, 2006 at 06:42:43AM +0200, Cesar Romani wrote: In the following function the bracket at 3