#### Archived

This topic is now archived and is closed to further replies.

# Programming using the console (and VI !!!!!!!!!!!!)

This topic is 5440 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi every-buddy !! Isn't there a way to get the word completion when coding w/o IDE? I don't beg for it out of mere laziness but cuz it's really useful when you don't have real help files (man cmd is barely enough) and it enables finding functions even when you can only assume what their names look like. I suppose I can write a kind of parser associated with something that reads in the header files to find what I need, can't I?? And how about makefiles? Could someone gimme the basics of using them or at least a nice URL, please ? Thank you in advance. Prog, Hex & Rock'n'Roll : I don't like the Prog but the Prog likes me. Some nice poetry to sweeten your spirit and relax a bit before programming [edited by - kurtcpp on November 28, 2003 10:14:46 AM]

##### Share on other sites
i guess you should grab the nano source code and write the completion algorithm yourself...

or maybe there is some way to enable completion in emacs... emacs is all blown up, so there might be one...

##### Share on other sites
C-p in Vim, M-/ in Emacs.

##### Share on other sites
What does M-... stand for in emacs? I''ve tried shift-m-... but that doesn''t seem to work.

--------
"Hey, what about those baggy pants you kids are wearin'' these days? Aren''t they hip and cool and poppin'' fresh?"-Peter Griffin
"Everytime I see an M followed by a dollar sign I just say "oh god" and go to the next post."-Neurokaotix
the D programming language

##### Share on other sites
Hello KurtCPP,

I think M- is the meta char.

I would go with vim, it is very powerful, lots of addons.
I use it as main editor for almost everything. Even on M\$ OS.

Lord Bart

##### Share on other sites
M is either Alt or Esc. Both should work on your typical keyboard.

--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
[Project site] [Blog] [RSS] [Browse the source] [IRC channel]

##### Share on other sites
On auto-completion I''m not sure. But, for make, here is the URL to a simple tutorial that should get you going.

peace and (trance) out

Mage

##### Share on other sites
Hi every-1. First, thank the the lots of you for your precious guidance; second, I beg your pardon for the possible typos in this reply but that's fuckin' hot to type when you got a hurted finger (note that a finger is a programmer's most dangerous W [either weapon/wand/whatever you need] lol) and last but not least:
- where do I get the nanocode 666 tells me about?? What does that consist of? Could I do the same with Kate or KWrite and add what I need to those editors (you can really mistake Kate for a true IDE when most of its options are enabled).
- what exactly is C-p in VI? I've tried Ctrl+P but that doesn't seems to work.
I think it'll be all. Thank you. :-)

Prog, Hex & Rock'n'Roll :
I don't like the Prog but the Prog likes me.
Some nice poetry to sweeten your spirit and relax a bit before programming

[edited by - kurtcpp on December 1, 2003 2:48:57 AM]

##### Share on other sites
If you start typing out a word in vim, then hit ctrl-p (while still in insert mode) it will complete the word, but only using the contents of any files currently open in vim. Ctrl-n does the same thing, but searches in reverse order for matches.

##### Share on other sites
Buddies, that works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
That''s merely awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Furthemore, it does exactly what I thought it had to do : it checks every file in the header files directory until it gets something looking like what I''ve begun to type.
Now, I just have to re-program the same on my own...
Does someone know how I can include my own code into an already-existing application?? (it''d surely be Kate, since it''s the one that has most features but still lacks word completion).
In any case : THAT''S AWESOME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thank you from the bottom of my heart, and long life to Gamedev dot net !!!!!!!!!!

Prog, Hex & Rock''n''Roll :
I don''t like the Prog but the Prog likes me.
Some nice poetry to sweeten your spirit and relax a bit before programming

1. 1
Rutin
45
2. 2
3. 3
4. 4
5. 5
JoeJ
19

• 13
• 10
• 12
• 10
• 13
• ### Forum Statistics

• Total Topics
632999
• Total Posts
3009814
• ### Who's Online (See full list)

There are no registered users currently online

×