Strange symbol in vim command line after start

旧巷老猫 提交于 2019-12-24 15:48:08

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!