Hi.
I'm a CS student and I'm just starting out. I was wondering if there was a way
to get syntax coloring in VI. I did some googling and found VIM but I don't really
understand how to set it up, and if I install it at home will it work from school?
Thanks
Syntax Color in VI?I don't know if this is where I should post this.
Page 1 of 1
7 Replies - 756 Views - Last Post: 03 March 2009 - 01:57 AM
Replies To: Syntax Color in VI?
#2
Re: Syntax Color in VI?
Posted 02 March 2009 - 03:05 AM
** Moved to Computer Support & Operating Systems **
Which OS/Distribution are you trying to add this too?
Which OS/Distribution are you trying to add this too?
#3
Re: Syntax Color in VI?
Posted 02 March 2009 - 10:58 AM
#4
Re: Syntax Color in VI?
Posted 02 March 2009 - 12:06 PM
So you're using vi on a remote Unix or Linux system?
#5
Re: Syntax Color in VI?
Posted 02 March 2009 - 03:12 PM
#6
Re: Syntax Color in VI?
Posted 02 March 2009 - 03:15 PM
Straight up vi is a really tiny program and doesn't do that many tricks beyond basic editing. As you've found, vim does a lot more. Chances are, unless it's an embedded system, vi really means vim.
You should be able to tell by just typing vi. If not, something like ":help" might tell you. Also, an "ls -l `which vi`" will give you an idea. You might have to case it and follow the link. On some systems you'll find a vim at the end of the vi line.
If you have vim, there are local settings that can be used to enable highlighting. If you just have vi; well, there's not a lot you can do.
Also, you may need to set your shell properly or local settings beyond just the .vimrc. Can really be more specific than that, since it varies from system to system.
You should be able to tell by just typing vi. If not, something like ":help" might tell you. Also, an "ls -l `which vi`" will give you an idea. You might have to case it and follow the link. On some systems you'll find a vim at the end of the vi line.
If you have vim, there are local settings that can be used to enable highlighting. If you just have vi; well, there's not a lot you can do.
Also, you may need to set your shell properly or local settings beyond just the .vimrc. Can really be more specific than that, since it varies from system to system.
#8
Re: Syntax Color in VI?
Posted 03 March 2009 - 01:57 AM
Page 1 of 1

New Topic/Question
This topic is locked



MultiQuote




|