LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-18-2004, 11:47 AM   #1
sneak
LQ Newbie
 
Registered: Feb 2004
Posts: 21

Rep: Reputation: 15
does vim have an option for code completion?


When I developed stuff under Windows I always had some IDE that did some thinking for me,

Someone told me that in Linux a lot gets written with VIM, I can imagine why, its a very efficient editor. So I gave it a try. I got syntax highlighting working. But I really miss some of the standard features that most IDE's got, such as code completion. Is there a way to configure VIM to do that?

I know that KDevelop and the other IDE's for Linux have it, but I'm really getting to like VIM.
 
Old 07-18-2004, 12:00 PM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Yes, it can do it. Run vim and type ":help completion" - it ought to give you a good starting point. Hitting CTRL-n after typing the first part of the word (variable name, etc.) will try to match it to other words in the file. A google search for "vim code completion" turns up quite a lot too.

Last edited by wapcaplet; 07-18-2004 at 12:02 PM.
 
Old 07-18-2004, 04:04 PM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
Vim is my favourite, too.
Should the code completion features not suffice to do for you, however, you might give Jedit a try. It's a Java application --- you can use it on Windows and Linux alike. Jedit can bei tailored and extended by numerous plug-ins for lots of programming languages and general programming tasks.

gargamel
 
Old 07-18-2004, 08:20 PM   #4
zakaluka
Member
 
Registered: Oct 2003
Posts: 58

Rep: Reputation: 15
If you don't mind using Wine/VMWare, take a look at insenvim.sf.net (Intellisense for Vim). It is quite amazing.

Regards,

zakaluka.
 
Old 07-20-2004, 07:05 AM   #5
sneak
LQ Newbie
 
Registered: Feb 2004
Posts: 21

Original Poster
Rep: Reputation: 15
thanks everyone, I've got it set now to complete keywords when i press tab, and the line is not empty .

I'm doing this with Vim's own completion and a little scripting magic. however, its annoying sometimes when it completes a word that I didn't mean to put there.

would there be a way that it could output the word it thinks i'm writing in the right corner or so?
Haven't found a script that does that.

Insenvim sounds great btw. to bad it's not ported yet.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
enabling command option completion s_deepblue Debian 4 12-02-2005 05:42 PM
emacs, code completion phoenix7 Programming 5 09-22-2005 09:51 AM
adding an option to a 'tab' completion + ls whatnoname Linux - Newbie 2 06-07-2005 07:32 AM
code completion in KDevelop dvm Programming 1 05-15-2005 06:35 AM
Anjuta and code completion supermatt Linux - Software 0 06-17-2004 09:41 PM


All times are GMT -5. The time now is 03:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration