mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
Improve terminal compatibility
This commit is contained in:
parent
64b6b15490
commit
86d71e17f0
1 changed files with 20 additions and 7 deletions
27
vimrc
27
vimrc
|
|
@ -17,7 +17,7 @@ let g:netrw_dirhistmax = 0
|
||||||
set clipboard^=unnamed
|
set clipboard^=unnamed
|
||||||
|
|
||||||
" Terminal title
|
" Terminal title
|
||||||
if has('macunix')
|
if has('macunix') && $TERM_PROGRAM == 'Apple_Terminal'
|
||||||
set title
|
set title
|
||||||
set t_ts=]6;
|
set t_ts=]6;
|
||||||
set t_fs=
|
set t_fs=
|
||||||
|
|
@ -27,6 +27,7 @@ if has('macunix')
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
set title
|
set title
|
||||||
|
autocmd BufEnter,BufRead * let &titlestring = expand("%:p")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Airline
|
" Airline
|
||||||
|
|
@ -47,18 +48,30 @@ if !has('gui_running')
|
||||||
if has("mouse_sgr")
|
if has("mouse_sgr")
|
||||||
set ttymouse=sgr
|
set ttymouse=sgr
|
||||||
end
|
end
|
||||||
set background=light
|
"set background=light
|
||||||
|
|
||||||
if $SSH_CLIENT
|
if $SSH_CLIENT
|
||||||
colorscheme smpl
|
colorscheme smpl
|
||||||
else
|
else
|
||||||
colorscheme nofrils-dark
|
if &background == 'light'
|
||||||
|
colorscheme nofrils-light
|
||||||
|
else
|
||||||
|
"colorscheme nofrils-dark
|
||||||
|
colorscheme nofrils-light
|
||||||
|
endif
|
||||||
|
|
||||||
"use terminal background
|
"use terminal background
|
||||||
hi Normal ctermbg=none guibg=none
|
if has('nvim')
|
||||||
hi todo ctermbg=none guibg=none
|
hi Normal ctermbg=none guibg=none
|
||||||
hi statement ctermbg=none guibg=none
|
hi todo ctermbg=none guibg=none
|
||||||
hi LineNr ctermbg=none guibg=none
|
hi statement ctermbg=none guibg=none
|
||||||
|
hi LineNr ctermbg=none guibg=none
|
||||||
|
else
|
||||||
|
hi Normal ctermbg=none
|
||||||
|
hi todo ctermbg=none
|
||||||
|
hi statement ctermbg=none
|
||||||
|
hi LineNr ctermbg=none
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue