ChinaUnix.net
相关文章推荐:

vim 上下左右 ABCD

偶在编辑模式一按 下就出来一个字母然后自动跳转到了命令模式。。。 是不是方向键不被支持啊。: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+换行”

by reer - Linux论坛 - 2005-01-05 17:10:33 阅读(1225) 回复(12)

abc [ 本帖最后由 xiaolaochu 于 2009-4-22 22:46 编辑 ]

by xiaolaochu - 猎头招聘 - 2008-12-13 09:49:21 阅读(1353) 回复(0)

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...

by int345 - BSD文档中心 - 2007-03-13 11:58:59 阅读(1011) 回复(0)
by johndoe - Shell - 2003-12-08 14:38:33 阅读(772) 回复(2)

/user/abcd/*.txt 如上面字符串 ,如何通过shell 分别获得/user/abcd/ 和 *.txt 尝试了dirname但是在sco unix 下不好用,在aix下好用。 用awk 或是 sed 如何做? 多谢!!

by peso - Shell - 2009-03-03 16:23:11 阅读(2222) 回复(18)

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

by zd2228 - AIX - 2005-08-15 11:56:51 阅读(1010) 回复(2)

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"; } } } } } 对吗?

by xiaojianredhat - Perl - 2006-12-11 10:18:02 阅读(3850) 回复(14)
by touchfeeling - Shell - 2004-08-21 16:09:38 阅读(3361) 回复(7)