Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-18-2004, 12:47 PM   #1
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, 01:00 PM   #2
LQ 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 01:02 PM.
Old 07-18-2004, 05:04 PM   #3
Senior Member
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,672

Rep: Reputation: 148Reputation: 148
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.

Old 07-18-2004, 09:20 PM   #4
Registered: Oct 2003
Posts: 58

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


Old 07-20-2004, 08:05 AM   #5
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.


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 06:42 PM
emacs, code completion phoenix7 Programming 5 09-22-2005 10:51 AM
adding an option to a 'tab' completion + ls whatnoname Linux - Newbie 2 06-07-2005 08:32 AM
code completion in KDevelop dvm Programming 1 05-15-2005 07:35 AM
Anjuta and code completion supermatt Linux - Software 0 06-17-2004 10:41 PM

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

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