iTerm question

I currently have four terminal windows arranged on my screen so that none of them overlap. I wanted to try to free some space up by switching to iTerm. The nice thing about iTerm is that it does tabbed terminals in the same way that Firefox and Safari do tabbed browsers. However, I'm finding that it's not showing syntax coloring in vim, which is a deal-killer because I'm always in vim. I know that it has to be able to do this. So, what am I missing?

5 Comments feed

iTerm is a wonderful thing; I missed aterm and Eterm from X11, and this brought back all the stuff I missed.

If you're using vi thru SSH (ie. on another machine), I suspect it's just an environment variable that needs setting, or the shell used doesn't have color enabled — some of the older shells don't.

If not… For some reason, the version of bash installed under Panther has no color to it. I can neither get color 'ls' listings, nor do I see color in vi / vim. For that, I have no answer yet. v2.05b0 should have color…

I believe this is an appropriate time to simply say WTF. :-)

I've had no problems getting vim syntax coloring to work in Terminal both locally and through ssh.

I finally figured it out. The option for changing the display from vt100 to ansi was well-hidden. Some free software developers really need to work on their usability chops.

so did you ever get syntax highlighting working within osx? i changed to ansi (hard to find i agree) and sshing to linux and opening a vim session now has proper syntax highlighting, but i cannot get it working within iTerm, how do i do this. I tried : set syntax=on to no avail. also where is the vimrc file? there seems to be no /etc/vim/vimrc.

Another question is how to change the yellow that the mac displays with vim its much harder to see than in linux.

To turn on syntax highlighting in OS X, add syntax enable to ~/.vimrc

Leave a Comment