GateOne
GateOne copied to clipboard
Can't use vim normally
I connect one host via gateone webpage,there was a note as above When I use vim to edit a file.
For those who struggling with vim issues, check your /etc/vimrc or ~/.vimrc in my case (CentOS 6.9) /etc/vimrc includes following lines
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
and in my printenv:
TERM=linux
which can be fixed with:
export TERM=xterm