RE: VimWiki - released finally

2007-06-05 Thread Mike Hansen
 -Original Message-
 From: Tom Purl [mailto:[EMAIL PROTECTED] 
[...] 
 So what I don't understand is, why can't I change these categories?
 I've been editing Mediawiki pages for 4 years, and I've never seen
 anything like this.

This isn't a figment of Tom's mind.

I just poked around the wiki. I'm not seeing a way to change the
category of an existing article. When you create a new article, you can
assign categories, but I'm not seeing a way to change the category on an
existing article even if you edit the entire article by clicking on the
edit link at the top of the article.

If there is a way to change the category of an existing article, I'm
missing it.

Mike



Re: Python Omni complete on Windows?

2007-05-23 Thread Mike Hansen
On 5/21/07, Mike Hansen [EMAIL PROTECTED] wrote:
 Oh great VIM gurus.

 With VIM 7.# on Windows, I can't seem to get the Omni complete to
work
 for Python for my own modules written in python. Omni complete seems
to
 work for standard library modules, but not for modules that I have in
 the same directory as the source I'm editing. I have a tags file in
the
 same directory as the python source. When I try to Omni complete, I
get
 Pattern not found. If I do a :version, I see +python/dyn. If I do
:py
 import sys;print sys.version, I see 2.4.4.

 How do I get Omni complete to work for Python on Windows?

 Does anyone have any ideas on this?

Hmm, could you provide a test case (some example files) so that I can
reproduce this?

Sorry I didn't get this message earlier. I just got a message from the
ezmlm program that several messages from the vim list bounced. I then
decided to look at the list on the web, and your reply was there.

I think I solved it. I have been doing development of a web application
on my Windows PC for an app that runs on Linux. I have a mapped
drive(using SAMBA) to the Linux server where the source code resides.
I've been editing the files on the Linux server from my Windows version
of VIM. Omni complete wasn't working except for standard library
modules. I did a simple test on Windows by creating a simple module,
running ctags, then creating another python file and importing the
module, and Omni complete worked. I did the same test with the files
sitting on the mapped drive, and it worked too. That lead me to believe
that there was something different about my web application. Well, there
were three 3rd party modules that were installed on the Linux server,
but they were not installed on my Windows PC. I installed them on my
Windows PC, and now Omni complete works much better than before. Lesson
learned.

I tried running VIM on a putty session to the Linux server, but it was
somewhat sluggish. I also tried running XMing on my Windows PC and
launching gvim from the Linux server, but that was sluggish too. Running
VIM from my Windows PC to the mapped drive to the Linux server seems to
work best. I just have to watch the line endings, but that's usually not
much of an issue.(set ff=unix)

Mike   


Python Omni complete on Windows?

2007-05-21 Thread Mike Hansen
Oh great VIM gurus.

With VIM 7.# on Windows, I can't seem to get the Omni complete to work
for Python for my own modules written in python. Omni complete seems to
work for standard library modules, but not for modules that I have in
the same directory as the source I'm editing. I have a tags file in the
same directory as the python source. When I try to Omni complete, I get
Pattern not found. If I do a :version, I see +python/dyn. If I do :py
import sys;print sys.version, I see 2.4.4.

How do I get Omni complete to work for Python on Windows?

Does anyone have any ideas on this? 

Thanks,

Mike


RE: is there a list-administrator ?

2007-05-09 Thread Mike Hansen
 

 -Original Message-
 From: Toon Knapen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 09, 2007 1:11 PM
 To: vim@vim.org
 Subject: is there a list-administrator ?
 
 Is there a list-administrator also listening in ?
 
 I have tried to unsubscribe a zillion times now and  I'm still on 
 this list. I would appreciate if the ml-admin could help me out here.
 
 thanks
 
 toon
 

I'm not a list-admin, but did you try sending a message to
[EMAIL PROTECTED]

Mike


RE: Bitchy omni completion with own Python modules/objects

2007-04-27 Thread Mike Hansen
Subject:Bitchy omni completion with own Python modules/objects
From:   Christoph Haas email () christoph-haas ! de
Date:   2007-04-27 8:54:14
Message-ID: 20070427085414.GF3937 () torf ! workaround ! org
[Download message RAW]

Dear list,

I have now spent half a day to get omni completion working correctly
for
me. Many people say that it just works - others have given up getting
it
working. Actually it works as expected with the Python standard
library:

import os
os.Ctrl-XCtrl-O

Then I get a choice of objects in the os module. But I don't get any
completion of my own symbols or imported modules. The status line just
reads pattern not found. Do I need to create a ctags file manually?
Can omni completion not complete anything but the standard library?
Right now it's not even close to what I know from IDEs like Wing. I
must
have done something wrong because everybody else loves omni completion.
:)

Hints welcome.

 Christoph

I have the same problem. It seems to do fine with standard library
modules, but it refuses to look at my own modules or classes. Komodo and
Eclipse w/Pydev seem to handle this, but I can't seem to figure out how
to get VIM to do it or if it is even possible in VIM. More of my code
refers to my own modules than standard library modules.

Mike


Confused about omni-complete for Python

2006-10-31 Thread Mike Hansen
I'm confused about omni-complete for Python. 

How should it work?

Let's say that I type in the following on a .py file.

import cgi

form = cgi.

At the . in insert mode I type Ctrl-X Ctrl-O.

A bunch of errors pop up and the omni-complete fails. 

Error detected while processing function pythoncomplete#Complete:

Traceback (most recent call last):
File string, line 1, in ?
NameError: name 'vimcomplete' is not defined
E121: Undefined variable: g:pythoncomplete_completions
E15: Invalid expression: g:pythoncomplet_completions
Omni completion ...pattern not found.

Shouldn't I get a list of attributes and methods from the cgi module?

I have filetype plugin on in my vimrc.
Is there any other setup I need to do to get it working?

I downloaded the newer pythoncomplete.vim and installed it in the autoload
directory.
http://www.vim.org/scripts/script.php?script_id=1542

Any ideas?

Thanks,

Mike






RE: Confused about omni-complete for Python

2006-10-31 Thread Mike Hansen
 

 -Original Message-
 
 On 10/31/06, Mike Hansen [EMAIL PROTECTED] wrote:
  I'm confused about omni-complete for Python.
 
  How should it work?
 
  Let's say that I type in the following on a .py file.
 
  import cgi
 
  form = cgi.
 
  At the . in insert mode I type Ctrl-X Ctrl-O.
 
  A bunch of errors pop up and the omni-complete fails.
 
  Error detected while processing function pythoncomplete#Complete:
 
  Traceback (most recent call last):
  File string, line 1, in ?
  NameError: name 'vimcomplete' is not defined
  E121: Undefined variable: g:pythoncomplete_completions
  E15: Invalid expression: g:pythoncomplet_completions
  Omni completion ...pattern not found.
 
 Do you get an error about pythoncomplete requiring python?  What is
 the output of :version in vim?
 

This in on my Windows XP box...
It has +python/dyn 
In the Compilation section there's a -DDYNAMIC_PYTHON_DDL=\python24.dll\

On my Kubuntu box...
It has -python

The error I reported above is from the Windows box. There is a python24.dll
on the Windows box. Although I have Python 2.5 installed on the Windows box.
Should I uninstall Python 2.5, uninstall VIM. Install Python 2.4 and then
install VIM?

It looks like the VIM on Kubuntu was compiled without python. That is
strange since Kubuntu is supposedly big on using Python. It's the VIM-gnome
package. It's the only VIM7 that I could get to work on Kubuntu. I never
could get VIM7 to compile from source.

Any help would be appreciated.

Thanks,

Mike