vi note
来源:互联网 发布:美国学建筑知乎 编辑:程序博客网 时间:2024/05/16 08:55
#modify
1) r|R
r:replace single char
R:replace char until [ESC] pressed.
2)c|C
c: c[num]w = [num]cw :change num words.
cc;change one line. ... test c[num]b c0 c$=C
3)s: [num]s substitute num chars.
----------------------------------------------------------
#set
set opt
set noopt
eg. set number ,set nonumber
set rtp:show vim runtimepath.
#cursor
[num]L:move to n lines above screen end,0 is default.
M:screen middle
[num]H:move to n lines below screen top,0 is default.
<CR>=+=^:to next line beginning.
-:like + (up).
(num)|:goto the num column of the current line.
[num]h|j|k|l :[num]h|l move left|right num chars.
[num]j|k jump num lines
(num)G = :num<CR> goto the num line.
gg <-> G :goto the file start<->end position.
w|W: w move forward one word,the same too W. but 'w' recognized a word by special char(not a-z|A-Z) ,W recognized a word by space char.
b|B:move backward. like w|W .
//CTRL=^
^F:Scroll forward one screen
^B:like ^F(backward )
^D:Scroll forward half screen(down)
^U:like ^D(up)
test:e|E (|) {|} [[|]]
#searches
basic /|?
f|F x:Find (move cursor to) next|previous occurrence of x in the line, where x stands for any character.
t|t x :Find (move cursor to) character befor|after previous occurrence of x in the line.
;|, :Repeat previous find command in same|opposite direction.
vi +/pattern file : open file at the fist occourrence of
#
. :execute the last edit operating
#
J:jion two lines.
#
num!!sort
#comment
map zmd :r !echo -n "/* "$USER" modify “ `date` " */"<CR>
map zmd :r !read ARGVS && echo -n "/* "$USER" "$ARGVS" " `date` " */"<CR>
- vi note
- vi 编辑note(一)
- note
- note
- NOTE
- note
- Note
- note
- note
- Note
- note
- Note
- Note
- note
- Note
- Note
- Note
- note
- 16.1.3 创建简单的有响应的应用程序
- 一篇不错的讲解Java异常的文章----感觉很不错,读了以后很有启发
- Linux PPP 数据收发流程
- 编码20年的老程序员分享所积累的20条编程经验
- 集合方式的组件映射
- vi note
- 关于GetQueuedCompletionStatus的返回值
- myeclipse中No entries available错误解决方法
- 在表单上任意位置滑动鼠标滚轮来使表单上下滚动
- jenkins 安装,用户管理
- Linux下缓冲区溢出攻击的原理及对策
- 关于编程,大学没有传授的10件事
- 正则表达式
- 剑侠情缘(网络版)---开发回顾(一篇老文章,看看也不错)