- Knowledgebase Home
- » Browse by Service
- » (dv) Dedicated-Virtual Server
- » (dv) 3.0
- » Web Applications
Enabling vi syntax colors
Overview
The following guide will show you how to enable syntax colors for VI/VIM.
Instructions
- Connecting via SSH to your server
- Connecting via SSH to your server
- Browse to your user directory with the following command:
cd ~ - Create a .vimrc file with the following command:
vi .vimrc - Click i for insert mode.
- Type the following command below to enable syntax and give a specific colorscheme. This example uses the desert colorscheme:
syntax on colorscheme desert - Hold Shift and hit : then type wq to save and quit the file.
- You should now be able to use vi and the colorscheme you choose to edit files on your (gs) Grid-Service.
Additional color schemes
The following is a few color schemes installed on the (gs) Grid-Services:
-
default

-
elflord

-
torte

-
delek

-
evening

-
pablo

The rest of the colorschemes installed are as follows: morning, peachpuff, blue, murphy, ron, zellner, darkblue, desert, koehler, and shine.
FAQs
Can I install my own colorscheme?
Yes, first login to your (gs) or (dv) service and type the following:
cd ~
Next, you need to create a .vim/colors directory with the following command:
mkdir .vim .vim/colors
Next, you can upload your own colorscheme into the colors folder you created. Finally, just follow the steps from earlier to set it as your default colorscheme.
TIP:
- You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme.
- For more color schemes, you can browse this library on the vim website.
- You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.
- For more information about vi, please visit: Understanding basic vi (visual editor).
User Comments
No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article