01 2022 档案

摘要:1. <Ctrl-O> 使vim 从插入模式暂时回到普通模式,可以执行普通模式命令后,恢复插入模式。 阅读全文
posted @ 2022-01-26 12:15 箫笛 阅读(115) 评论(0) 推荐(0) 编辑
摘要:1. <Ctrl-A> 增大当前数字 2. <Ctrl-X> 减小当前数字 3. <Ctrl-G> 查看当前文件的文件路径 4. g<Ctrl-G> 查看文件当前光标的详细信息 5. K 在文档手册查找当前关键字, set keywordprg? 可以查看当前文件所使用的文档查看命令设置 6. ~ 阅读全文
posted @ 2022-01-26 12:02 箫笛 阅读(136) 评论(0) 推荐(0) 编辑
摘要:Sort file content from Vim as shown below. 1. :sort -- Sort in ascending order 2. :sort! -- Sort in descending order 3. :sort i -- Ignore case while s 阅读全文
posted @ 2022-01-24 10:38 箫笛 阅读(895) 评论(0) 推荐(0) 编辑
摘要:global 命令类似于 shell 命令的 sed,对当前文档执行特定的命令 1. :g/^$/d 删除所有的空行 2. :g/^\s*$/d 删除具有空白字符或空白行 3. :g/^$/,/./-j 将多个空白行合并为一个空白行 4. :g/pattern/d 根据搜索模式删除特定的行 5. : 阅读全文
posted @ 2022-01-21 10:39 箫笛 阅读(222) 评论(0) 推荐(0) 编辑
摘要:help: debug-scripts Debugging scripts *debug-scripts* Besides the obvious messages that you can add to your scripts to find out whatthey are doing, Vi 阅读全文
posted @ 2022-01-02 00:26 箫笛 阅读(203) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示