mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 19:40:29 +01:00
Removed forcing 256 colors.
In the past, there was an issue with detecting color capabilities on different terminal types. It's working now.
This commit is contained in:
4
vimrc
4
vimrc
@@ -414,14 +414,10 @@ autocmd FileType gitcommit call <SID>SetGitcommitSettings()
|
|||||||
" }}}
|
" }}}
|
||||||
"TERMINAL: options for terminal emulators {{{
|
"TERMINAL: options for terminal emulators {{{
|
||||||
if $TERM == 'rxvt-unicode-256color' || $TERM == 'xterm'
|
if $TERM == 'rxvt-unicode-256color' || $TERM == 'xterm'
|
||||||
"Enable 256 colors support
|
|
||||||
set t_Co=256
|
|
||||||
"repair urxvt ctrl+pgup/down behaviour
|
"repair urxvt ctrl+pgup/down behaviour
|
||||||
map [5^ <C-PageUp>
|
map [5^ <C-PageUp>
|
||||||
map [6^ <C-PageDown>
|
map [6^ <C-PageDown>
|
||||||
elseif $TERM == 'screen' || $TERM == 'screen-256color'
|
elseif $TERM == 'screen' || $TERM == 'screen-256color'
|
||||||
set term=screen-256color "Set terminal type
|
|
||||||
set t_Co=256 "Enable 256 colors support
|
|
||||||
set t_kN=[6;*~
|
set t_kN=[6;*~
|
||||||
set t_kP=[5;*~
|
set t_kP=[5;*~
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user