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

2006-07-20 Thread Benji Fisher
On Thu, Jul 20, 2006 at 11:07:48AM -0700, John Reese wrote: > > Actually, you can't actually tell that from the import line. blag > could also be a package (i.e. directory) containing a module Bok, > defined in a file called Bok.py. That's what I had in mind. > > The following is an example of

Re: Visible Spaces

2006-07-20 Thread panshizhu
This is what I'd thinked about. IMO, Consider use the Underlined group, The underlined is not a character, but it looks like a character. I guess this suit Johnson's need better. HTH -- Sincerely, Pan, Shi Zhu. ext: 2606 Benji Fisher <[EMAIL PROTECTED]> wrote on 2006.07.21 13:56:55: > Wo

Re: Visible Spaces

2006-07-20 Thread Benji Fisher
Would you be satisfied with changing the background color for spaces? Step 1: :hi and look for a pleasing color. I am not using the GUI right now, and it looks as though my choices are limited. (Many groups change the foreground color but not the background, at least in the default color

Re: Visible Spaces

2006-07-20 Thread A.J.Mechelynck
Georg Dahn wrote: Hi! Or you might want to use :1,$s/ /./ to replace all spaces by dots, then (immediately after) u for "undo". To replace _all_ spaces by dots, you should better use :%s/ /./g because your command replaces the first space character of each line only. With 'g' at

Re: Visible Spaces

2006-07-20 Thread Georg Dahn
Hi! Or you might want to use :1,$s/ /./ to replace all spaces by dots, then (immediately after) u for "undo". To replace _all_ spaces by dots, you should better use :%s/ /./g because your command replaces the first space character of each line only. With 'g' at the end, all space

Re: :edit {file} question

2006-07-20 Thread John Orr
Okay, here's a couple of versions depending upon which version of vim you have. I don't know if it's universal, but my installation of version 6.3 has a non-functioning getcmdline command, and vim7 adds a useful new command, getcmdtype, hence: " Get path to current file in command-line using c

Re: Visible Spaces

2006-07-20 Thread A.J.Mechelynck
Steve Hall wrote: On Fri, 2006-07-21 at 11:19 +0800, Stewart Johnson wrote: Is there a vim option to represent space characters in a file as a dot or something else not blank? Vim can only represent trailing spaces, not any intermediate ones. (Per the previously mentioned listchars option.)

Re: Visible Spaces

2006-07-20 Thread Stewart Johnson
Thanks guys! Intermediate spaces were what I was looking for, oh well. :-/ On 7/21/06, Steve Hall <[EMAIL PROTECTED]> wrote: On Fri, 2006-07-21 at 11:19 +0800, Stewart Johnson wrote: > > Is there a vim option to represent space characters in a file as a > dot or something else not blank? Vim

Re: Visible Spaces

2006-07-20 Thread Steve Hall
On Fri, 2006-07-21 at 11:19 +0800, Stewart Johnson wrote: > > Is there a vim option to represent space characters in a file as a > dot or something else not blank? Vim can only represent trailing spaces, not any intermediate ones. (Per the previously mentioned listchars option.) -- Steve Hall

Re: Visible Spaces

2006-07-20 Thread A.J.Mechelynck
Stewart Johnson wrote: Hi All - Sorry if this obvious but I couldn't find anything in :help or google. Is there a vim option to represent space characters in a file as a dot or something else not blank? Thanks, Stewart See :help 'list' :help 'listchars' Also the next time,

Visible Spaces

2006-07-20 Thread Stewart Johnson
Hi All - Sorry if this obvious but I couldn't find anything in :help or google. Is there a vim option to represent space characters in a file as a dot or something else not blank? Thanks, Stewart

Re: user defined command n/a in Tiny mode, any has() +xxx reqired for that?

2006-07-20 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: Hi, For some reason my .vimrc must works for multiple versions of Vim. Now, I found that in Vim 6.1 Tiny version (shipped with Redhat 9), the following does not work: command! -nargs=+ TestCmd echo "" TestCmd my test The vim saids: Not an editor command: TestCmd my te

user defined command n/a in Tiny mode, any has() +xxx reqired for that?

2006-07-20 Thread panshizhu
Hi, For some reason my .vimrc must works for multiple versions of Vim. Now, I found that in Vim 6.1 Tiny version (shipped with Redhat 9), the following does not work: command! -nargs=+ TestCmd echo "" TestCmd my test The vim saids: Not an editor command: TestCmd my test It seems that the comm

Re: poll?

2006-07-20 Thread Bram Moolenaar
Yakov Lerner wrote: > Bram, How about posting a poll on www.vim.org site ? > Two polls ! (1) Do you you vim6 or vim 7 ? > (2) Do you use console-mode-vim or gvim ? What would we do with the outcome? -- hundred-and-one symptoms of being an internet addict: 29. Your phone bill comes to your door

poll?

2006-07-20 Thread Yakov Lerner
Bram, How about posting a poll on www.vim.org site ? Two polls ! (1) Do you you vim6 or vim 7 ? (2) Do you use console-mode-vim or gvim ? Yakov

Vim patches and lack of food

2006-07-20 Thread Bram Moolenaar
Greetings, Vim users. You may have noticed patches for Vim 7 appear at a slow pace. I currently have limited time to work on Vim. And my internet connection isn't 100% reliable, and SourceForge was down for a day, and [insert your favorite excuse here]... On the positive side: I found a nice a

Re: edit-with-vim context menu item disappeared with vim7 upgrade

2006-07-20 Thread Michael Sorens
I tried running install.exe. Choice 14 said "use 'edit with vim'". I typed 14, pressed enter, and the menu came back up now showing "do NOT use 'edit with vim'". I infer that that means the change was successful, though the feedback is rather oblique. Unfortunately, this did not fix the problem

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

2006-07-20 Thread John Reese
On 7/19/06, Gary Johnson <[EMAIL PROTECTED]> wrote: On 2006-07-19, John Reese <[EMAIL PROTECTED]> wrote: > i.e.: > from myproject.something.blar.blag import Bok > if you put the cursor over Bok and hit gf, no dice. I wouldn't expect that to work because Bok is not a file but an object within th

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

2006-07-20 Thread Benji Fisher
On Wed, Jul 19, 2006 at 04:41:56PM -0700, Gary Johnson wrote: > On 2006-07-19, John Reese <[EMAIL PROTECTED]> wrote: [snip] > > from myproject.something.blar.blag import Bok > > if you put the cursor over Bok and hit gf, no dice. > > I wouldn't expect that to work because Bok is not a file but an

Re: :split above below...

2006-07-20 Thread stri ker
Once a split is made you can move between the split windows with ":winc" and then the regular movement command, for example to move from the left window to the one on the right use :winc l To move the window itself instead of the cursor only, use the uppercase of the command, to move the t

Re: matchit doesn't work for php

2006-07-20 Thread Benji Fisher
On Thu, Jul 20, 2006 at 12:39:28AM +0200, Cesar Romani wrote: > > In the following code, "if" from line 2 doesn't match "else" from line 7 > > > 1 2 if($a > $b) > 3 { > 4 echo "a is bigger than b"; > 5 if($a=10) $b=5; > 6 } > 7 else > 8 { > 9 echo

sh indent script

2006-07-20 Thread Edward L. Fox
Hi VIMmers, The default sh indent script in VIM7 indent the following sample file this way: 8< #!/bin/sh SYSTEM=`uname -s` case $SYSTEM in Linux) echo "My system is Linux" echo "Do Linux stuff here..." ;; FreeBSD) echo "My system is F

Fwd: echo "messsage" & "Press any key" message

2006-07-20 Thread Yakov Lerner
On 7/20/06, SHANKAR R-R66203 <[EMAIL PROTECTED]> wrote: Hi In a function, I am echoing some message. The message is echoed and there is message - Please ENTER or type command to continue Is there any way to get rid of this. I just want the message to be displayed, but should not wait for VIM

Re: :edit {file} question

2006-07-20 Thread Wim R. Crols
[EMAIL PROTECTED] wrote: What is the easiest way to edit a file that is in the same directory as the current file? E.g. I open a file like this: vim /x/y/z/w/file1.c and want to now open /x/y/z/w/file2.c? Occasionally want to open files in the parent directory of current file's directory. It woul

Re: :split above below...

2006-07-20 Thread Jürgen Krämer
Hi, Marco Kunze wrote: > > Is there a method to tell vim whether I would like to open the new file below > or > above the current window when using :split? for a permanent setting there are two options: :help 'splitbelow' :help 'splitright' For a case by case decision you can prefix any

:split above below...

2006-07-20 Thread Marco Kunze
Hi, Is there a method to tell vim whether I would like to open the new file below or above the current window when using :split? Or is there a way to swap two windows? Thanks, Marco

echo "messsage" & "Press any key" message

2006-07-20 Thread SHANKAR R-R66203
Hi In a function, I am echoing some message. The message is echoed and there is message - Please ENTER or type command to continue Is there any way to get rid of this. I just want the message to be displayed, but should not wait for VIM to display to press any key. I saw this behaviour in sket

Re: spellchecking in version7 general info needed

2006-07-20 Thread Lukas Muehlethaler
On Thu, Jul 20, 2006 at 11:04:31AM +0200, Klaus Rudolph wrote: > Hi all, > > I installed vim7 now and want to test the spellchecking. > I am confused about all the stuff, because the info I found is mixed > from version7 and older scipts. > > What I am really missing is a general information ab

spellchecking in version7 general info needed

2006-07-20 Thread Klaus Rudolph
Hi all, I installed vim7 now and want to test the spellchecking. I am confused about all the stuff, because the info I found is mixed from version7 and older scipts. What I am really missing is a general information about the new version 7 spellchecking with all the possible configurations and

Re: :edit {file} question

2006-07-20 Thread Matthew Winn
On Wed, Jul 19, 2006 at 06:10:43PM -0700, [EMAIL PROTECTED] wrote: > What is the easiest way to edit a file that is in the same directory as > the current file? E.g. I open a file like this: vim /x/y/z/w/file1.c and > want to now open /x/y/z/w/file2.c? I just type :e ^R% to get the current filenam