首页 > 系统服务 > 详细

vim 最基本操作

时间:2017-09-01 21:06:40      阅读:273      评论:0      收藏:0      [点我收藏+]

insert mode:               i

save :                        :w

save and quit:           :wq

move cursor:             H (left)     J(next line)      K(last row)     L(right)

open a new line:       o  (below current line)     O(above current line)

delete:                       d

copy:                         y

paste:                        p

undo:                      u

line-connection:         J

find and replace:       :%s/f/r/g               f:  texts to find     r: texts to replace f  /g:optional,means global

open several files:    vim file1 file2 ...

switch opened files:  :n (to the next one)    :N(to the previous one)

insert a whole file to another:   :r  file2           open file1 and use the command to insert content in file2   

 

vim 最基本操作

原文:http://www.cnblogs.com/heifengli/p/7464890.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!