Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Apps and Games (http://www.mac-forums.com/forums/os-x-apps-games/)
-   -   How do I set indent space from 8-char to 3-char in vi? (http://www.mac-forums.com/forums/os-x-apps-games/24475-how-do-i-set-indent-space-8-char-3-char-vi.html)

AlexN 09-26-2005 05:42 AM

How do I set indent space from 8-char to 3-char in vi?
 
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

rman 09-26-2005 11:54 AM

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.

supenguin 09-26-2005 03:23 PM

vimrc
 
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

rman 09-26-2005 04:09 PM

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

AlexN 09-26-2005 06:08 PM

Creating a .vimrc file myself? Will vi takes it? Do you know where this file is located?

supenguin 09-26-2005 06:47 PM

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

AlexN 09-26-2005 09:04 PM

Oh yeah, it works. Thanks.


All times are GMT -4. The time now is 04:26 PM.

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