-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim 编辑器必知必会 #117
Labels
Comments
两种模式:插入模式和普通模式(命令模式)
|
上下左右:k,j,h,l
|
单词移动:w,e,b
|
命令加上数字后更加强大:7j,3w,3e数字可以与k,j,h,l和w,b,e一起结合起来使用。
|
输入重复文字:3igo Esce.g. 3igo Esc
|
搜索字符:f / F
|
跳到匹配的括号:%
|
跳到行头行尾:0 ,$
|
找光标处的单词:*,#
|
跳到文件开始结尾:gg,G,2G
|
搜索单词:/text n,N
|
插入新行:o,O
|
删除字符:x,X
idea:这个比DELETE操作方便很多,少了右移的一步。 |
替换字符:r
|
删除单词:d
|
重复执行上条命令:.
|
Visual模式:v
|
Real Vim::w,:q,:q!,u,ctrl + R
|
强烈推荐 https://www.openvim.com/ !!!💯 💯 💯 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
本来想学习vi的,但是突然发现vim是vi improved,所以就直接学vim了。
stackoverflow上找到的"What is the difference between Vi and Vim?"答案,也确实指出vim是vi的一个超集,有很多很赞的特性,值得深入学习。
关于vim的学习,主要通过 https://www.openvim.com/ 这个超级赞的网站(不得不承认,老外的网站做的真心好)。
The text was updated successfully, but these errors were encountered: