问题
I'm using Kubuntu 15.10, konsole and vim. When I initially start vim in konsole, i get strange symbols ("115;0c") in my command line, which is really annoying.
i tried "set term=konsole" setting in my .vimrc but i got this
E558: Terminal entry not found in terminfo
'konsole' not known. Available builtin terminals are:
builtin_gui
builtin_amiga
builtin_beos-ansi
builtin_ansi
builtin_pcansi
builtin_win32
builtin_vt320
builtin_vt52
builtin_xterm
builtin_iris-ansi
builtin_debug
builtin_dumb
defaulting to 'ansi'
but all of these options were annoying, because i got "trace" after closing quiting vim.
Does anyone have the same problem? I'd appreciate any help.
回答1:
That usually indicates an incorrect TERM
environment variable setting -- when vim
starts up, it generates a number of terminal configuration commands base on the TERM
setting to configure the terminal. If the TERM
setting is wrong, it may generate an incorrect setting string that gets displayed like this.
For a konsole window, TERM
should be set to konsole
.
来源:https://stackoverflow.com/questions/36720755/strange-symbol-in-vim-command-line-after-start