You are not logged in.

#1 2005-04-15 20:58:49

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

vim code completion

I found this script:
http://www.vim.org/scripts/script.php?script_id=1179
and it looks promising... close to the functionality I've been looking for in vim for a long time....

the problem is, it won't work on windows... and it's something perl based (function references or something... I dunno, I hate perl)

the entire script will run, but when attempting to do the completions (ctrl+j) it can't find the "next_match" function to complete it...

any perl gurus out there who wants to try to take this on?

additionally, anyone willing to convert it to something that's more.... *not* perl? I was going to do it... but I don't know the other interpreted languages that can be compiled into vim well enough (python/ruby)... maybe I'll take on the task of making it pythonic... hmm

Offline

#2 2005-04-16 02:53:10

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: vim code completion

Vim has inbuilt completion doesnt it? just ctrl-n and ctrl-p to complete it.

or does it require a script to work? I've got a python one installed, so maybe thats why....

Offline

#3 2005-04-16 18:02:11

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim code completion

no, it has built in completion, but it's just alphabetic... when using an OO language most would like the completion to work within the context of the object you're using...

Offline

#4 2005-04-16 20:26:21

krafty
Member
Registered: 2005-03-22
Posts: 15

Re: vim code completion

Due to lack of time I didn't look at the script you mentioned, but have you ever tried Vim Intellisense?  It offers code completion for, amongst others, C++, Java, XML and HTML.


:: it's not in rhyme or reason

Offline

#5 2005-04-16 20:39:46

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim code completion

krafty wrote:

Due to lack of time I didn't look at the script you mentioned, but have you ever tried Vim Intellisense?  It offers code completion for, amongst others, C++, Java, XML and HTML.

it's windows only - and requires gvim... I tend to use vim (console) alot more

Offline

#6 2005-04-16 20:45:31

krafty
Member
Registered: 2005-03-22
Posts: 15

Re: vim code completion

phrakture wrote:

it's windows only - and requires gvim... I tend to use vim (console) alot more

Ah..didn't know that - I'm a dedicated Emacs user myself... (no flame intended wink)


:: it's not in rhyme or reason

Offline

#7 2005-04-16 20:53:46

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: vim code completion

Why don't you just ssh to a Linux box and run vim on there? That's what happens to me when I'm forced to work on a Windows pc, somehow the screen clutters up with terminals. :-/

Offline

#8 2005-04-17 01:25:43

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: vim code completion

http://www.vim.org/scripts/script.php?script_id=850
if you're doing python, that one works a treat.

Offline

#9 2005-04-17 20:58:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim code completion

python_calltips is much better for python 8)

Offline

Board footer

Powered by FluxBB