偶在编辑模式一按 下就出来一个字母然后自动跳转到了命令模式。。。 是不是方向键不被支持啊。:lol:
by goodboy1881 - BSD - 2005-11-19 07:52:22 阅读(2878) 回复(10)
系统是fedora-core2,自带了vim-6.2.457,因为有如下问题,又装了vim-6.3,还是不行。本以为可以改配置文件,可找不到它的配置文件,没办法,只好请教大家了。 具体问题是: 进入vi,在输入状态下,分别按“上”“下”“右”“左”键,得到的“A+换行”“B+换行”“C+换行”“D+换行”
FreeBSD vim在Insert模式下,上下左右箭头键显示为abcd四个字母。解决:方法1. 编辑.vimrc,加入set nocompatible方法2.$ vim ~/.vimrcset t_ku= (now type Ctrl-V and press cursor up)set t_kd= (now type Ctrl-V and press cursor down)set t_kr= (now type Ctrl-V and press cursor right)set t_kr= (now type Ctrl-V and press cursor left)You should get something that looks likeset t_ku=^[OA set t_kd=^[OBset t_kr...
/user/abcd/*.txt 如上面字符串 ,如何通过shell 分别获得/user/abcd/ 和 *.txt 尝试了dirname但是在sco unix 下不好用,在aix下好用。 用awk 或是 sed 如何做? 多谢!!
A system administrator was asked to log information on possible security breaches on a server.Which file should additional entries be added to capture this information? A:/var/adm/sulog B:/etc/syslog.conf C:/etc/security/sysck.cfg D:/etc/security/login.cfg
use strict; use warnings; my $a; my $b; my $c; my $d; for ($a=0;$a<=9;$a++) { for ($b=0;$b<=9;$b++) { for ($c=0;$c<=9;$c++) { for ($d=0;$d<=9;$d++) { if(("$a != $b != $c != $d") && ("($a*1000+$b*100+$c*10+$d)*$d" == "$d*1000+$c*100+$b*10+$a")) { print "$a $b $c $d\n"; } } } } } 对吗?