vim实用技巧学习笔记(3.不要自我重复)
2014-12-28 21:52
405 查看
在句尾添加分号是一个常用的操作,假设有如下文本
...We're waiting for content before the site can go live...
..If you are copy with this, let's go ahead with it...
...We'll launch as soon as we have copy..
我们要在每一句的末尾加上分号,该如何操作?
当光标在第一行的时候 在普通模式下按A 然后输入;然后按ESC,接着按J换行重复该操作
当有重复操作的时候我们就应该想到 . 命令
我们重新来过
光标在第一行的时候按下A然后输入;然后按下ESC,麻蛋好像没什么不同
接下来按j 再按下 . 发现了什么
...We're waiting for content before the site can og live...;
..If you are copy with this, let's go ahead with it...;
...We'll launch as soon as we have copy...
第二行末尾出现了分号,接下来继续按 j . 发现第三行末尾也出现了分号
这就是 . 命令 的奇效, 它重复了 A;(ECS) 这三个命令 省调了许多重复的操作
...We're waiting for content before the site can go live...
..If you are copy with this, let's go ahead with it...
...We'll launch as soon as we have copy..
我们要在每一句的末尾加上分号,该如何操作?
当光标在第一行的时候 在普通模式下按A 然后输入;然后按ESC,接着按J换行重复该操作
当有重复操作的时候我们就应该想到 . 命令
我们重新来过
光标在第一行的时候按下A然后输入;然后按下ESC,麻蛋好像没什么不同
接下来按j 再按下 . 发现了什么
...We're waiting for content before the site can og live...;
..If you are copy with this, let's go ahead with it...;
...We'll launch as soon as we have copy...
第二行末尾出现了分号,接下来继续按 j . 发现第三行末尾也出现了分号
这就是 . 命令 的奇效, 它重复了 A;(ECS) 这三个命令 省调了许多重复的操作
相关文章推荐
- <vim实用技巧>学习笔记
- vim 实用技巧学习笔记(1. 结识 . 命令)
- vim实用技巧(第二版)学习笔记
- vim实用命令-学习笔记
- C++/GDI+ 学习笔记(四)——实用技巧——颜色矩阵(ColorMatrix)
- C++/GDI+ 学习笔记(四)——实用技巧——双缓冲(Double Buffer)
- C++/GDI+ 学习笔记(六)——实用技巧——双缓冲(Double Buffer)
- python学习笔记--实用技巧之可迭代对象的元素分解
- vim实用技巧学习4
- C++/GDI+ 学习笔记(四)——实用技巧——颜色矩阵(ColorMatrix)
- C++/GDI+ 学习笔记(五)——实用技巧——颜色矩阵(ColorMatrix)
- C++/GDI+ 学习笔记(四)——实用技巧——调色板(ColorPalette)
- vim实用技巧学习part_one
- Linux 学习笔记_4_Vim/Vi使用技巧
- C++/GDI+ 学习笔记(四)——实用技巧——双缓冲(Double Buffer)
- 【学习笔记】Vim使用技巧
- vim学习笔记-问题与技巧汇总
- C++/GDI+ 学习笔记(四)——实用技巧——调色板(ColorPalette)
- 【转】C++/GDI+ 学习笔记(四)——实用技巧——颜色矩阵(ColorMatrix)
- 比较实用的正则表达式学习笔记