mirror of
https://github.com/xlogerais/config-vim
synced 2024-11-10 00:21:41 +01:00
Added configuration to manage parameters based on terminal type
This commit is contained in:
parent
9249980bc5
commit
66becf0c08
34
vimrc
34
vimrc
@ -108,3 +108,37 @@ autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
|
||||
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
|
||||
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
|
||||
|
||||
" ------[ Gestion des types de terminaux ] ----------------------------------------------
|
||||
|
||||
if (&term =~ 'xterm')
|
||||
set termencoding=utf-8
|
||||
set t_Co=256
|
||||
set mouse=a
|
||||
colorscheme mustangpp
|
||||
elseif (&term =~ 'rxvt')
|
||||
set termencoding=utf-8
|
||||
set t_Co=256
|
||||
set mouse=a
|
||||
colorscheme mustang
|
||||
map <C-up> :tabr<cr>
|
||||
map <C-down> :tabl<cr>
|
||||
map <C-t><left> :tabp<cr>
|
||||
map <C-t><right> :tabn<cr>
|
||||
elseif (&term =~ 'screen-256color')
|
||||
set termencoding=utf-8
|
||||
set t_Co=256
|
||||
set mouse=a
|
||||
colorscheme mustangpp
|
||||
elseif (&term =~ 'screen')
|
||||
set termencoding=utf-8
|
||||
set t_Co=16
|
||||
set background=dark
|
||||
colorscheme zenburn
|
||||
elseif (&term =~ 'linux')
|
||||
set termencoding=utf-8
|
||||
set t_Co=16
|
||||
set nocursorline
|
||||
else
|
||||
set termencoding=utf-8
|
||||
set t_Co=16
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user