Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   OS X - Development and Darwin (http://www.mac-forums.com/forums/os-x-development-darwin/)
-   -   VIM on the terminal (http://www.mac-forums.com/forums/os-x-development-darwin/18466-vim-terminal.html)

zero17 05-09-2005 11:49 PM

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

witeshark 05-10-2005 12:02 AM

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

zero17 05-10-2005 09:53 AM

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)
http://img41.echo.cx/img41/7258/color9rt.jpg

in fact my terminal on my mac doesn't look like above, but look like this:
http://img41.echo.cx/img41/1466/plain3fl.jpg

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...

witeshark 05-11-2005 12:39 AM

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

rman 05-11-2005 09:18 AM

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.

zero17 05-11-2005 09:46 AM

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:

meltbanana314 05-11-2005 06:52 PM

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.

zero17 05-12-2005 12:19 AM

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.. :D thanks a lot dude.. you save my life.

fearlessfreap24 05-17-2005 05:50 PM

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?

zero17 06-01-2005 10:55 AM

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

witeshark 06-01-2005 11:04 PM

This is so nice to know - thanks meltbanana314


All times are GMT -4. The time now is 03:46 PM.

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