GateOne icon indicating copy to clipboard operation
GateOne copied to clipboard

Can't use vim normally

Open lgbjacky opened this issue 8 years ago • 1 comments

1 I connect one host via gateone webpage,there was a note as above When I use vim to edit a file.

lgbjacky avatar Mar 16 '16 03:03 lgbjacky

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

w84miracle avatar Nov 24 '17 06:11 w84miracle