:%s/old/new/g |
Replace all occurences of old by new in file |
:%s/old/new/gw |
Replace all occurences with confirmation |
:2,35s/old/new/g |
Replace all occurences between lines 2 and 35 |
:5,$s/old/new/g |
Replace all occurences from line 5 to EOF |
:%s/^/hello/g |
Replace the begining of each line by hello |
:%s/$/Harry/g |
Replace the end of each line by Harry |
:%s/onward/forward/gi |
Replace onward by forward, case unsensitive |
:%s/ *$//g |
Delete all white spaces |
:g/string/d |
Delete all lines containing string |
:v/string/d |
Delete all lines containing which didn’t contain string |
:s/Bill/Steve/ |
Replace the first occurence of Bill by Steve in current line |
:s/Bill/Steve/g |
Replace Bill by Steve in current line |
:%s/Bill/Steve/g |
Replace Bill by Steve in all the file |
:%s/\r//g |
Delete DOS carriage returns (^M) |
:%s/\r/\r/g |
Transform DOS carriage returns in returns |
:%s#<[^>]\+>##g |
Delete HTML tags but keeps text |
:%s/^\(.*\)\n\1$/\1/ |
Delete lines which appears twice |
Ctrl+a |
Increment number under the cursor |
Ctrl+x |
Decrement number under cursor |
ggVGg? |
Change text to Rot13 |
相关推荐
Vi命令详解Vi命令详解 Vi命令详解 Vi命令详解
vi命令vi命令vi命令vi命令vi命令vi命令vi命令vi命令vi命令vi命令
Vi命令集宝典大全Vi命令集宝典大全Vi命令集宝典大全Vi命令集宝典大全Vi命令集宝典大全Vi命令集宝典大全Vi命令集宝典大全
vi 常用命令 unix vi 常用命令 vi 替换命令 unix vi 命令 vi 命令模式 绝对的有用!
linux vi命令大全 linux vi命令大全 linux vi命令大全
vi的命令壁纸,包含了vi的所有命令,作为壁纸可以很快查到需要的命令
使用vi命令创建一个脚本文件
I :从光标所在列的第一个非空白字元前面开始插入资料。 开始 (open) o :在光标所在列下新增一列并进入输入模式。 O: 在光标所在列上方新增一列并进入输入模式。 x: 删除光标所在字符。 ...
vi命令详解.chm
vi命令大全vi命令大全vi命令大全vi命令大全vi命令大全
linux vi 命令大全 常用vi 命令 不常用vi命令
VI命令集思维导图,覆盖了VI大多数的命令,方便平时查阅
linux基本命令大全, linux下vi命令大全
VI 命令一览表,有详细的VI命令的用法及案例,希望能给大家提供帮助
vi命令大全(VI快捷键整理),全面,周到,细致。 可以作为参考手册
linux vi 命令详解,关于linux vi 命令的详细解释
常用的vi命令列表常用的vi命令列表常用的vi命令列表常用的vi命令列表
vi编辑器快捷命令。
一些常用的linux常用的命令!vi命令,调试命令等学习linux的同学不妨看看!
VI命令笔记,非常好