I use vim on webfaction through putty and would like to change the colours used in the syntax highlighting. I have installed some example themes and then tried to change the colors in those themes to match the ones I want. For some reason this strategy does not work. What am I doing wrong? Is it because I’m using putty, or is it something weird with webfaction’s linux or vim? Or is my logic just wrong?
I created /home/user/.vim/color/theme.vim
I then load the them by adding colorscheme theme to my /home/user/.vimrc
Aside from my color changes not working on obvious parts like
hi Normal guifg=#ffffff guibg=#000000 gui=none
it also does not seem to implement all the theme changes when I just use the theme without changing it. Is there something better than putty I can use?
In terminal mode, the
ctermbgandctermfgkeys are used instead ofguibgandguifg. It uses Xterm colors. See for example this table for a rough mapping, and even a VIM script that shows a color table.So you would need to change your line to: