作者:高--洁 | 来源:互联网 | 2023-06-04 11:58
我尝试在FreeBSD上使用vim(通过Linux xterm兼容终端上的ssh).然而,vim的行为类似于vi开箱即用.例如,它对删除键没有反应,插入F字符而不是在插入模式等时上升.在FreeBSD
我尝试在FreeBSD上使用vim(通过Linux xterm兼容终端上的ssh).然而,vim的行为类似于vi开箱即用.例如,它对删除键没有反应,插入F字符而不是在插入模式等时上升.
在FreeBSD X11上没有安装.
编辑:按照要求我发布vim –version
# vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 28 2010 11:48:54)
Included patches: 1-6, 8-35, 37-48, 50-70, 73, 75-87, 90-92, 94-100, 102-137, 139-149, 151-171, 173-190, 192-193, 195-203, 206-211, 213-215, 217-218, 220-232, 234-246, 251-259, 261-301, 303-319, 321-322, 324-335, 337-351, 353-361, 363, 366-371, 373, 375-376, 378-383, 385-387, 389-398, 401-402, 404-411
Compiled by root@enterprise.piechotka.com.pl
Big version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+float +folding -footer +fork() -gettext -hangul_input +iconv +insert_expand
+jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
+menu +mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm
-mouse_jsbterm +mouse_netterm +mouse_sysmouse +mouse_xterm +multi_byte
+multi_lang -mzscheme -netbeans_intg -osfiletype +path_extra -perl +postscript
+printer -profile -python +quickfix +reltime +rightleft -ruby +scrollbind
+signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
-X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -O2 -pipe -fno-strict-aliasing -D_FORTIFY_SOURCE=1
Linking: cc -L/usr/local/lib -o vim -lm -ltermlib -liconv
解决方法:
这通常是终端设置问题.检查FreeBSD端的$TERM环境变量,检查你的本地终端设置是什么.这几乎肯定是箭头键的问题.
除此之外,请确保您已应用标准的“unbreak my vim”.vimrc设置.
set nocompat
set backspace=eol,start,indent
如果您确定终端设置正确,但您仍然遇到退格问题,请查看vim的帮助
:help fixdel