Notes on playing with VIM
来源:互联网 发布:启用MIUI优化 编辑:程序博客网 时间:2024/05/14 16:04
"Mouse can never survive under the mighty VIM."
Three steps to learn how to use VIM:
i. do never touch your mouse
ii. memorize the key mapping in your mind
iii. forget about the key mapping
Part I: Basic Cursor Movement
-------------------------------------------------------------------------------------
k up
hl => left right
j down
-------------------------------------------------------------------------------------
w=>move the cursor to the first letter of the next word
e=>move the cursor to the last letter of the next word
b=>move the cursor to the first letter of the previous word
-------------------------------------------------------------------------------------
^=>move the cursor to the first non-blank of the current line
0=>move the cursor to the first position of the current line
$=>move the cursor to the last position of the current line
-------------------------------------------------------------------------------------
gg=>move the cursor to the beginning of the file
G=>move the cursor to the end of the file
-------------------------------------------------------------------------------------
f(x)=>find the first character of (x) after the cursor
F(x)=>find the first character of (x) before the cursor
Notice: the score () is only a gesture used for explaining down below. No need to type in VIM.
-------------------------------------------------------------------------------------
Ctrl + e => roll down for one line
Ctrl + y => roll up for one line
Ctrl + d => roll down for half a screen
Ctrl + u => roll up for half a screen
Ctrl + f => roll down for a whole screen
Ctrl + b => roll up for a whole screen
-------------------------------------------------------------------------------------
Part II: File Editting
-------------------------------------------------------------------------------------
y(x)=>copy from the cursor to the position (x)
- Notes on playing with VIM
- Playing with Content-Type – XXE on JSON Endpoints
- Notes On <Pro JavaScript with MooTools> - 01
- Notes On <Pro JavaScript with MooTools> - 02
- Some notes on shared libraries with ld
- 【CF542E】Playing on Graph
- Playing with DataGrid Control
- Playing with ptrace
- Playing with the Stack
- Playing with the Stack
- Playing with the stack
- playing with ptrace
- Playing with Virtual Memory
- FZU_1017 Playing with Calculator
- 10067 - Playing with Wheels
- Playing with Virtual Memory
- 110902 Playing with Wheels
- A. Playing with Dice
- matlab常用函数备忘录(持续更新)
- 在Android Studio中建立模拟器(安卓5.0)
- 【黑马程序员】---- Java 基础之 常用对象
- metasploit - committer
- 步步为营_Android开发课[19]_用户界面之ListView(列表视图)
- Notes on playing with VIM
- 23年老股民总结:三大绝招让我战无不胜
- 设计模式学习
- Oracle 中的references权限
- 关于需求那点事
- Fragment详解之四——管理Fragment(2)
- 不用第三个变量交换两个变量的值
- cocos2dx3.0以下版本打的apk包在android5.0机上运行崩溃
- 75. PHP 遍历对象