Vim general commands

  • global replacement

:%s/foo/bar/g

  • switch to uppercase letters

v

gU

  • ctrl-p details

(select one file) ctrl-p > ctrl-j or ctrl-k

open file in a new tab ctrl-p > ctrl-o > t

open file in vertical way ctrl-p > ctrl-o > v

open file in horizontal way ctrl-p > ctrl-o > h

  •  How to move fast.

e Move to the end of a word.
w Move forward to the beginning of a word.
3w Move forward three words.
b Move backward to the beginning of a word.
3b </dt><dd>Move backward three words.

 

 

 

 

Posted in

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>