001、测试数据
[root@pc1 test01]# ls a.txt [root@pc1 test01]# cat a.txt ee root kk aa ee ddd ee ROOT kk ee dd Root
002、 方法1
vim 打开查找文件, 在查找内容的后边增加\c, 如果不在末尾增加\c,则表示的是不忽略大小写
比如针对root忽略大小写查找:
ee root kk aa ee ddd ee ROOT kk ee dd Root ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ /root\c ## 在vim的命令模式下输入如下内容
003、在命令模式下设置
01、在查找之前, 在末行模式下输入如下内容:
ee root kk aa ee ddd ee ROOT kk ee dd Root ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ :set ignorecase ## 末行模式下,输入该命令并执行, 可以忽略大小写进行查找
02、取消忽略大小写查找, 在末行模式下,执行以下命令:
ee root kk aa ee ddd ee ROOT kk ee dd Root ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ :set noignorecase ## 表示不忽略大小写查找
。
标签:ee,vim,忽略,kk,编辑器,查找,大小写,linux,root From: https://www.cnblogs.com/liujiaxin2018/p/18112268