Results 1 to 7 of 7
  1. #1
    AlexN
    Guest
    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

  2. #2
    How do I set indent space from 8-char to 3-char in vi?
    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Cool
    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!

  3. #3
    supenguin
    Guest
    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

  4. #4
    How do I set indent space from 8-char to 3-char in vi?
    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    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
    Cool
    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!

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

  6. #6
    supenguin
    Guest
    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

  7. #7
    AlexN
    Guest
    Oh yeah, it works. Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Indent text in a cell?
    By MikeV99 in forum iOS and Apps
    Replies: 0
    Last Post: 08-30-2012, 10:22 PM
  2. word paragraph first line indent
    By petertong in forum OS X - Operating System
    Replies: 1
    Last Post: 06-06-2012, 08:31 AM
  3. Hanging indent in Pages?
    By kial in forum OS X - Apps and Games
    Replies: 0
    Last Post: 04-01-2008, 08:16 PM
  4. how much hard drive space should i set for Parallels to use?
    By Poose22 in forum Running Windows (or anything else) on your Mac
    Replies: 1
    Last Post: 02-25-2008, 12:14 PM
  5. How do I set indent space from 8-char to 3-char in vi?
    By AlexN in forum OS X - Operating System
    Replies: 0
    Last Post: 09-26-2005, 05:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •