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 - Development and Darwin Discussion and questions about development for Mac OS X.

VIM on the terminal


Post Reply New Thread Subscribe

 
Thread Tools
zero17
Guest
 
Posts: n/a

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
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
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
QUOTE Thanks
zero17
Guest
 
Posts: n/a

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...
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
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
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
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!
QUOTE Thanks
zero17
Guest
 
Posts: n/a

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:
QUOTE Thanks
meltbanana314
Guest
 
Posts: n/a

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.
QUOTE Thanks
zero17
Guest
 
Posts: n/a

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.
QUOTE Thanks
fearlessfreap24

 
fearlessfreap24's Avatar
 
Member Since: Feb 09, 2005
Location: Near San Diego, CA
Posts: 2,339
fearlessfreap24 is just really nicefearlessfreap24 is just really nicefearlessfreap24 is just really nicefearlessfreap24 is just really nice
Mac Specs: MacBook Pro 13" | MacBook Pro 13" | Mac Mini 2GHz C2D

fearlessfreap24 is offline
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?

QUOTE Thanks
zero17
Guest
 
Posts: n/a

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
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
This is so nice to know - thanks meltbanana314
QUOTE Thanks

Post Reply New Thread Subscribe


« Help with IFconfig! | Command line arguments »
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
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM
My Terminal is messed up. edokid Switcher Hangout 8 11-16-2004 02:42 AM
The Terminal Fomer OS X - Operating System 14 05-25-2004 11:04 AM
Terminal nbizm 3 for the price of 1 Bo Eddy OS X - Development and Darwin 5 05-04-2004 12:40 PM
looking for a terminal emulator and command shell in Mac OSX CandiMarie OS X - Operating System 9 03-05-2004 03:53 PM

All times are GMT -4. The time now is 05:11 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?