LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-20-2002, 12:45 AM   #1
purpleburple
Member
 
Registered: Jun 2002
Location: USA
Distribution: Slackware8.1
Posts: 332

Rep: Reputation: 30
How do I set tabs and stuff in gvim??


Hi. I have just started using gvim (vi) to edit my C code. I found out how to turn on the syntax coloring for a .c code under the pull-down menu's but how do I set it up to automatically indent for 'int declarations' 'for loops' ,etc. I mean like the auto-indent that emacs uses so I don't have to always indent my code manually.



thanks
 
Old 08-20-2002, 05:27 AM   #2
da Perp
Member
 
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171

Rep: Reputation: 30
You have to edit your /etc/.vimrc file (or wherever t´s located.)
add a line like tabs = 4 or something like that. either do man vi or man vim to find out exactly, or run a search on this site, because I´ve seen it posted around here somewhere before.

PEACE OUT
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me set some stuff up in suse 9.3 sarge extreme Linux - Hardware 2 07-17-2005 11:36 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
where is the gvim? ayiiq180 Linux - Software 2 12-12-2004 03:41 AM
marking tabs in gvim kwong Linux - Newbie 2 03-15-2003 12:43 PM
gvim where can I get it for RH 7.3 mtint Linux - Networking 3 10-22-2002 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:32 AM.

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
Open Source Consulting | Domain Registration