New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

OS 10.4x - How do I set indent space from 8-char to 3-char in vi?


Post Reply New Thread Subscribe

 
Thread Tools
AlexN
Guest
 
Posts: n/a

How do I set indent space from 8-char to 3-char in vi? The default 8-char when I use "Tab" key in annoying. In Linux, I can edit the /etc/vimrc, but there is no such file on MacOS X...or I just couldn't find it.

Anyone know?


Thanks
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Have you tried to create one and see what happens? It has been a long time and i would need to look that one up.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
supenguin
Guest
 
Posts: n/a

I never mess with the system vimrc. Just create one in your home directory called .vimrc At least that's how I do it in Linux. Not sure on the Mac. I just used Text Wrangler. You also may want to do "locate vimrc" on the command line to see where its keeping that file.

-Kenny
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Creating a .vimrc file in your home directory/folder is a better idea.

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
AlexN
Guest
 
Posts: n/a

Creating a .vimrc file myself? Will vi takes it? Do you know where this file is located?
QUOTE Thanks
supenguin
Guest
 
Posts: n/a

Just create a new file called .vimrc in your home directory. Its just a plain text file. vim will use the system settings for everything except for what's in that file.

-Kenny
QUOTE Thanks
AlexN
Guest
 
Posts: n/a

Oh yeah, it works. Thanks.
QUOTE Thanks

Post Reply New Thread Subscribe


« Recommend Program for managing day to day finances? | Entourage X and Gmail accounts »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
hard drive space ? boneheadz Switcher Hangout 2 06-03-2005 07:33 PM
how can i set the path? Bo Eddy OS X - Development and Darwin 1 05-12-2004 10:45 AM

All times are GMT -4. The time now is 09:24 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?