Results 1 to 11 of 11
  1. #1
    zero17
    Guest
    VIM on the terminal
    Is anybody know how to make vim colorful on the terminal mac os x like the one in the linux terminal. it seems every time I use vim on terminal mac os x doesn't even have colors, and different like on the linux terminal. should I set up something? or is it the default like that? thanks..

    ps: my os is mac os x 10.3.9 panther

  2. #2
    VIM on the terminal
    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Location
    Miami FL
    Posts
    2,860
    Specs:
    G4 1Ghz OS X 10.4.7
    Choose Terminal > Window Settings.
    Choose a setting (Display, Color, or Window) from the Terminal Inspector pop-up menu.
    Make the settings you want for your Terminal windows.
    Click "Use Settings as Defaults" if you want to preserve these settings as the default settings for all new Terminal windows from Mac help

  3. #3
    zero17
    Guest
    Quote Originally Posted by witeshark
    Choose Terminal > Window Settings.
    Choose a setting (Display, Color, or Window) from the Terminal Inspector pop-up menu.
    Make the settings you want for your Terminal windows.
    Click "Use Settings as Defaults" if you want to preserve these settings as the default settings for all new Terminal windows from Mac help
    thanks for the answer, but I don't think that's what I mean.. what I mean was how to make the font colors if I edit a file, for example .cpp file on vim like this: (this is from my linux box)


    in fact my terminal on my mac doesn't look like above, but look like this:


    the version of vim in my mac and my linux are the same. any idea? or is it the default like that and I cannot change anything...

  4. #4
    VIM on the terminal
    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Location
    Miami FL
    Posts
    2,860
    Specs:
    G4 1Ghz OS X 10.4.7
    That's a good question. I hate when I have no answer, but to ignore is no good, so I will look into it more

  5. #5
    VIM on the terminal
    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
    In the old days (not to long in the distant past), you would use a string of escape sequences. I don't know what you use now.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  6. #6
    zero17
    Guest
    Quote Originally Posted by witeshark
    That's a good question. I hate when I have no answer, but to ignore is no good, so I will look into it more
    thanks witeshark I appreciate it.. :mac:

  7. #7
    meltbanana314
    Guest
    You're talking about syntax highlighting, right?

    Open up your terminal, become a super user, then open up your .vimrc file and add these lines:

    set nocompatible " vim>vi
    syntax on " Enable syntax highlighting
    filetype on " Enable filetype detection
    filetype indent on " Enable filetype-specific indenting
    filetype plugin on " Enable filetype-specific plugins

    Then save and close the file, quit the terminal and then restart it.

    EDIT: those are tabs after the words (before the quotation marks) but the stupid forum software truncated the lines.

  8. #8
    zero17
    Guest
    Quote Originally Posted by meltbanana314
    You're talking about syntax highlighting, right?

    Open up your terminal, become a super user, then open up your .vimrc file and add these lines:

    set nocompatible " vim>vi
    syntax on " Enable syntax highlighting
    filetype on " Enable filetype detection
    filetype indent on " Enable filetype-specific indenting
    filetype plugin on " Enable filetype-specific plugins

    Then save and close the file, quit the terminal and then restart it.

    EDIT: those are tabs after the words (before the quotation marks) but the stupid forum software truncated the lines.
    thanks a lot.. it's miracle.. my vim is colors.. thanks a lot dude.. you save my life.

  9. #9
    VIM on the terminal
    fearlessfreap24's Avatar
    Member Since
    Feb 09, 2005
    Location
    Near San Diego, CA
    Posts
    2,339
    Specs:
    MacBook Pro 13" | MacBook Pro 13" | Mac Mini 2GHz C2D
    Quote Originally Posted by meltbanana314
    You're talking about syntax highlighting, right?

    ...then open up your .vimrc file and add these lines:
    how do you do that?

  10. #10
    zero17
    Guest
    Quote Originally Posted by fearlessfreap24
    how do you do that?
    open terminal... then type
    vim .vimrc

    then type the things.. then quit and save it
    press esc : wq
    wq for write and quit

  11. #11
    VIM on the terminal
    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Location
    Miami FL
    Posts
    2,860
    Specs:
    G4 1Ghz OS X 10.4.7
    This is so nice to know - thanks meltbanana314

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Yosemite Broke Vim??
    By gmark99 in forum OS X - Operating System
    Replies: 4
    Last Post: 11-06-2014, 06:28 PM
  2. VIM v7.3
    By Maat in forum OS X - Development and Darwin
    Replies: 11
    Last Post: 02-23-2012, 05:19 PM
  3. slow vim cursor movemen in MacOSX 10.6.2
    By is-1-prime? in forum OS X - Apps and Games
    Replies: 2
    Last Post: 01-11-2010, 01:20 AM
  4. My Transmit - Vim bridge
    By tmallen in forum OS X - Apps and Games
    Replies: 0
    Last Post: 11-05-2008, 09:13 AM
  5. using VIM
    By boletje in forum Switcher Hangout
    Replies: 2
    Last Post: 02-27-2007, 09:57 PM

Posting Permissions

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