Finding two words in either orderEdit Finding two words in either order sectionEdit
You can search for a line that contains two words, in any order. For example, the following pattern finds all lines that contain both "red" and "blue", in any order:
.*red\&.*blue
In a pattern, \& separates alternates, each of which has to match at the same position. The two alternates in this example are:
.*red (will match all characters from the beginning of a line to the end of the last "red"); and
.*blue (will match all characters from the beginning of a line to the end of the last "blue").
A line which contains both "red" and "blue" will match both alternates, starting at the beginning of the line. The pattern .*red\&.*blue finds the last alternate (but only if all alternates match at the same position), so if you are highlighting matches, you
will see text matched by .*blue highlighted.
An alternative procedure is to use a pattern that explicitly finds "red" followed by "blue", or "blue" followed by "red":
\(red.*blue\)\|\(blue.*red\)
To search for lines that contain only the whole words "red" and "blue", in either order, use one of the following patterns:
.*\<red\>\&.*\<blue\>
\(\<red\>.*\<blue\>\)\|\(\<blue\>.*\<red\>\) |
相关推荐
[服务器和数据中心虚拟化].VMware-VIMSetup-all-5.0.0-639890.iso 详情 2.3GB [服务器和数据中心虚拟化].VMware-VIMSetup-all-5.0.0-639890.zip 详情 2GB [服务器和数据中心虚拟化].VMware-viclient-all-5.0.0-...
vim-colors-solarized, vim文本编辑器的精确 colorscheme 标题描述作者创建的颜色已经修改用于Vim的Solarized colorscheme机器和人员的精确颜色Schoonover浅黄色2011 152011年 16用于Vim的 Solarized colorsche
VMware-VIM-all-6.7.0-15976714 原版镜像 .................................................................................................................
vmware vcenter6.5 for windows版本。 VMware-VIM-all-6.5.0-14020092
百度云盘链接附文档中,如有问题可联系我,亲测有效。
vim插件----代码补全,高亮,文件浏览等等
这个资源包括vim-7.4.tar.bz2和vimgdb-for-vim7.4-master.zip
VMware vSphere 5.1 下载地址
vim键盘图 . 键盘布局彩图(打出来参考,很方便) vi-vim-cheat-sheet.gif vi-vim-tutorial-1.gif vi-vim-tutorial-2.gif vi-vim-tutorial-3.gif vi-vim-tutorial-4.gif vi-vim-tutorial-5.gif vi-vim-tutorial-6....
,还有我自己的修改和整理,有语法高亮,语句补全,显示行号,自动缩进等等功能。 还有创建源文件自动添加头文件的功能,例如写一个.c程序 自动添加了写在配置文件里的信息,包括作者名,邮箱,时间和程序的头文件等...
vim-lion, Vim文本编辑器的一个简单对齐运算符 lion.vimLion.vim 是一种通过字符对齐文本的工具。 它定义了一些可以与运动命令一起使用来对齐一个目标文本块的Vim操作符。这两个操作符是 gl 和 gl 。 gl 将在对齐...
Ubuntu 64位免安装版VIM-IDE。 压缩包为直接打包/etc/vim配置及插件包。 root@ubuntu:/etc/vim# tree -L 2 . bundle ...应用于用户版时可提取插件包放到家目录~/.vim下即可,再配合.vimrc可直接使用
vim系列插件 vim-powerline-develop
Atom-atom-vim-mode-plus.zip,vim-mode improvedVIM模式增强,atom是一个用web技术构建的开源文本编辑器。
vim-tmux-focus-events, 使终端vim和tmux更好地协同工作 tmux-focus-events.vimFocusGained 和 FocusLost 自动命令事件在... 这个插件在使用vim内部Tmux时恢复它们。以下是相关内容:vim fugitive插件使用来刷新状态行
vim-common-7.4.629-7.el7.x86_64.rpm
vim配置,包含vim常用配置文件及插件
7.2版推出了,但是,不论是软件还是这份文档本身,7.2之于7.1,正如7.1之于7.0,基本上是一个bugfix版,改动很小。7.2新增的功能主要是浮点数据类型的支持,请参考|关于7.1版| 目录 *user-manual* 概览 起步...
go语言高亮vim插件,go语言高亮vim插件,go语言高亮vim插件 go语言高亮vim插件.go语言高亮vim插件
ubuntu vim 高亮显示 我的资源从来不收分,哈哈