LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2004, 04:16 PM   #1
Xa!
LQ Newbie
 
Registered: Mar 2004
Location: .ru/moscow
Distribution: Gentoo
Posts: 17

Rep: Reputation: 0
Script for vim (shows members of a struct like VC)


Is there a script... i dont know how it is called in english.. say, i have a struct with int a, int b and char c. And i also have a variable my_variable of this struct, so i want script to give me a tip, when i put a dot after my_variable. like this:

i write: my_variable.
comuter writes: [a,b,c] so i know that i can write my_variable.a, my_variable.b or my_variable.c

just like in MS VC,

it would be great if u help me to find similar script that shows which arguments a function takes (again just to remind me)

i write: inet_aton(
computer writes: [const char *cp, struct in_addr *inp]
 
Old 03-07-2004, 07:38 PM   #2
KDE4me
Member
 
Registered: Apr 2003
Location: Australia
Distribution: RedHat 9.0 / Slackware 9.0/ FreeBSD 4.8 / Solaris 8 x86 / Mandrake 9.0
Posts: 90

Rep: Reputation: 15
I don't believe vi can do that as vi is a minimalist editor, you probably have to look for some specific IDE, try KDevelop that might have it but I haven't really used it. If you do find something on Unix that does have that I'd be very interested to know about it.
 
Old 03-09-2004, 04:22 PM   #3
Xa!
LQ Newbie
 
Registered: Mar 2004
Location: .ru/moscow
Distribution: Gentoo
Posts: 17

Original Poster
Rep: Reputation: 0
"Every time you type a function name, a prototype for it will appear on the information line" look at http://users.erols.com/astronaut/vim/#Cfunc
 
Old 03-09-2004, 08:17 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Xa, thanks for the link!
I've been browsing the Vim website's scripts section but found nothing like this.

Håkan
 
  


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
snmp staus shows it running but on trying MRTG, it shows public@ipaddr not giving res swati220781 Linux - Networking 3 07-08-2004 06:32 PM
g++ and wrong struct member addresses / struct size misreporting sonajiso Linux - General 5 05-22-2004 11:16 PM
switch statement converting struct char to struct int oceaneyes2 Programming 2 12-10-2003 05:30 PM
using struct type X as pointer in struct X. worldmagic Programming 1 10-28-2003 03:06 PM
Accessing a struct inside struct cxel91a Programming 1 09-17-2003 05:24 PM


All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration