How to change vim colors in PuTTY?

How to change vim colors in PuTTY?

1 Answer. To enable 256 colors in PuTTY go to Window->Colours->Allow terminal to use xterm 256-colour mode. Of course, the server will also have its $TERM set to xterm-256color and your vim will need to be using a 256 colorscheme.

How many colors does PuTTY support?

256 colors
1 Answer. Putty already supports 256 colors, and the next version (currently available as a development snapshot) supports true color which is 16.8 million colors. Note that not many of the built-in vim color schemes support 256 colors.

How do I change the color scheme in vim?

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.

How to set the color scheme in Vim with putty?

With the settings below, using :runtime syntax/colortest.vim shows all 23 colors as distinctly unique. It is relatively easy to change the TERM setting PuTTY uses to set it to send it as “xterm-256color” (or install the full set of terminfo files and set it to the proper setting of “putty-256color”.

How many colors can I put in Vim terminal?

Terminals are usually limited to 256 colors while GUI are only limited by color depth of your desktop environment, typically 2^32. So even if there is lots of vim color scheme available around, implicitly they are often designed for the GUI and won’t work for the terminal version.

Why are Vim colorschemes not changing background color?

So even if there is lots of vim color scheme available around, implicitly they are often designed for the GUI and won’t work for the terminal version. If you look at color schemes on vim.org, there is often a mention of GUI or 256. So you have to chose which to use depending on the context.

How do I set putty to xterm-256color?

It is relatively easy to change the TERM setting PuTTY uses to set it to send it as “xterm-256color” (or install the full set of terminfo files and set it to the proper setting of “putty-256color”. — PuTTY doesn’t support Techtronix mode and so is not fully xterm compatible.)