vi基本操作
来源:互联网 发布:七天网络阅卷查分登陆 编辑:程序博客网 时间:2024/06/05 10:56
vi 基本操作
1 locate
0->row start
$->row end
w->word next
b->word back (->sentence next )->sentence back
ctrl+F->screen next
ctrl+B->screen back
:2->row 2
2k->row up 2
2 search
/abc->search abc
/ abc->search "abc"
n->next N->back
3 save
:wq = ZZ
!->ask
:q!->quit without save
:w filename
:e!->quit without save and restart VI
4 edit
i a->cursor
I A->row left and right
o O->row up and down
5 delete
6x 6X->cursor left and right
dw->del word
D->cursor row right del
dd->del row
cc=S->replace this row
cw=R->replace word
r->replace single alpha and return cmd
s->replace this single alpha and insert
6 recovery
:u=ctrl+r->recovery back to up state
:U->recovery this sentence
7 high level
yy->cp sentence
p->row down
P->row up
:!ls->ls and return but no sudo
8 replace
:1,$s/\*/hello/g->replace all * with hello from 1 to end
:1,5s/misspelled/spelled corectly/gc->replace misspelled with spelled correctly from 1 to 5 and ask yes or no g->row first or not /g->row all
9 row num
:setnu
- vi基本操作命令
- VI基本操作
- vi的基本操作
- vi基本操作
- VI的基本操作
- vi的基本操作
- vi 基本操作
- Linux Vi基本操作
- vi基本操作
- vi/vim基本操作
- vi基本操作命令
- Linux VI 基本操作
- vi的基本操作
- vi基本操作
- vi的基本操作
- vi 的基本操作
- Vi基本操作
- vi基本操作
- Android中实现显示手机联系人并调用
- Normalize.css源代码赏析
- 学习总结十:hadoop的伪分布安装
- C++primer学习笔记 第7章
- 关于HTML5属性placeHolder在手机浏览器不兼容问题
- vi基本操作
- 图片处理 截图+保存图片
- mongostat详解
- 农场小母牛
- libevent(2): 超时机制分析
- halcon PCB板上找焊盘的实例讲解
- 自定义android 4.0以上的对话框风格
- 有关timer控件的使用说明
- cocos2dx-CCScrollView