Chinaunix

标题: How to extend VI macro in practice [打印本页]

作者: stanleylei    时间: 2010-02-08 05:59
标题: How to extend VI macro in practice
To record a Macro, please input the command "q" with the Macro name. For instance, if you want to create a new Macro to insert 8 spaces, you can firstly input the command "qi". This will start to record the macro. And then just do as usual to insert 8 spaces. At last input the command "q" to end the recording. Now, you can use the macro '@i' to repeat the task of inserting 8 spaces.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/48729/showart_2179600.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2