Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 54: | Line 54: | ||
<pre> |
<pre> |
||
if &term =~ "xterm" |
if &term =~ "xterm" |
||
− | " |
+ | "256 color -- |
− | let &t_Co |
+ | let &t_Co=256 |
" restore screen after quitting |
" restore screen after quitting |
||
− | + | set t_ti=ESC7ESC[rESC[?47h t_te=ESC[?47lESC8 |
|
− | let &t_te = "\<Esc>[?47l\<Esc>8" |
||
if has("terminfo") |
if has("terminfo") |
||
− | let &t_Sf |
+ | let &t_Sf="\ESC[3%p1%dm" |
− | let &t_Sb |
+ | let &t_Sb="\ESC[4%p1%dm" |
else |
else |
||
− | let &t_Sf |
+ | let &t_Sf="\ESC[3%dm" |
− | let &t_Sb |
+ | let &t_Sb="\ESC[4%dm" |
endif |
endif |
||
endif |
endif |
||
Line 100: | Line 99: | ||
---- |
---- |
||
: It works for me with putty. But I need to explicitly set :syntax on after setting 'term' to builtin_ansi. [[Special:Contributions/217.88.63.38|217.88.63.38]] 13:20, December 11, 2010 (UTC) |
: It works for me with putty. But I need to explicitly set :syntax on after setting 'term' to builtin_ansi. [[Special:Contributions/217.88.63.38|217.88.63.38]] 13:20, December 11, 2010 (UTC) |
||
− | |||
− | ---- |
||
− | |||
− | Try to set Terminal-type string in putty (Connection->Data) to 'putty-256color'. That worked for me. |