This is more for my own edification, and is really a collation of other stuff I found:
Step 1: Configuring PuTTY
When creating your session, underWindow -> Colours, check the top 3 box es: - Allow terminal to specify ANSI colours
- Allow terminal to use xterm 256-colour mode
- Bolded text is a different colour
Connection -> Data, make sure Terminal-type string is xterm-256color, or xtermStep 2: Configuring Vim
In your.vimrc add the following:if &term =~ "xterm"
set t_Co=256
if has("terminfo")
let &t_Sf=nr2char(27).'[3%p1%dm'
let &t_Sb=nr2char(27).'[4%p1%dm'
else
let &t_Sf=nr2char(27).'[3%dm'
let &t_Sb=nr2char(27).'[4%dm'
endif
endif
0 comments:
Post a Comment