Color scheme in vim?

You need to specify a filetype, assuming this is c code you are saving with a . Pc extension. From vim, type the following :set filetype=c This will work if syntax highlighting is working for other files, without the .

Pc extension.

This means that vi`m don't know file type of your file and thus can not pick up colour scheme. You can see the file type by typing: :echo &ft There're several ways to force file type. My preferred is a vim modline.

This is a special line readed by line when the file is loaded. The line can containing misc settings regarding the file and one of them is file type: #vim :ft=cpp Initial character can be # or // (). Ft stands for file type and can be any file type supported by your vim (in the example bvelow is cpp file type for C++ files).

On my system file type configuration files located in /usr/share/vim/vim72/ftplugin/ for more info write: :help modeline Additional way to force filetype for all *. Pc files add the following file in your ~/. Vimrc: autocmd BufReadPre *.

Pc set filetype=cpp.

Its worth noting that you should be careful using the modleine if you are sharing code with other vim users, as you don't want to inadvertently override their settings. – timmow Oct 13 '09 at 22:26.

In gvim, after changing the default color scheme, the next time gvim is started, the default setting is restored. To retain the color scheme add colorscheme to vimrc. MS Windows: Make sure HOME exists and is set to where your vimrc file is located.

The $HOME environment variable can be set by going to your desktop, right click on "My Computer", click the "Advanced" tab, select "Environment Variables". If HOME is not in the list of variables, create a new variable named HOME and point it to the location of your vimrc. On Unix/Linux/MacOSX this should be preset and can be seen by going to a command prompt/Terminal window and typing echo $HOME or in vim enter :echo $HOME.

Sometimes if colorscheme is not loading properly on startup, edit your gvimrc file and comment out or remove the lines containing highlight aka hi. Save your changes and start vim. You can set your preferred color scheme in gvim for MS Windows by editing the file vimrc in C:\Program Files\Vim or the location where you installed Vim.

Edit vimrc and add a line like colors as the last line. Save the file and start gvim you will see your color scheme. MS Windows: (this particular example applies to any instance of gvim), :help gvimrc states that for MS Win32 if vimrc is not in $HOME, the _gvimrc in $VIM.

You may display these by issuing, :echo $VIM, or :echo $VIM from within gvim.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions