当前位置:网站首页>vim指定行注释和解注释
vim指定行注释和解注释
2022-04-23 15:43:00 【莫迟_】
1.vim底行命令模式
1.64至74行首插入"#":
64, 74 s/^/#/g
64 #[Running] python -u "\Py\deco_1.py"
65 #enter deco3 (foo)
66 #enter deco2 (wrap_3)
67 #enter deco1 (wrap_2)
68 #enter wrapers_1 (2, 3)
69 #enter wrapers_2 (2, 3)
70 #enter wrapers_3 (2, 3)
71 #exit wrapper_3 result + 3:11
72 #exit wrapper_2 result + 1:12
73 #exit wrapper_1 result * 2:24
74 #24
1.64至74行首删除"#":
64,74 s/^#//g
64 [Running] python -u "\Py\deco_1.py"
65 enter deco3 (foo)
66 enter deco2 (wrap_3)
67 enter deco1 (wrap_2)
68 enter wrapers_1 (2, 3)
69 enter wrapers_2 (2, 3)
70 enter wrapers_3 (2, 3)
71 exit wrapper_3 result + 3:11
72 exit wrapper_2 result + 1:12
73 exit wrapper_1 result * 2:24
74 24
2.其实质是正则匹配替换
版权声明
本文为[莫迟_]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_39457834/article/details/123103536
边栏推荐
- 【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope
- PHP PDO ODBC将一个文件夹的文件装载到MySQL数据库BLOB列,并将BLOB列下载到另一个文件夹
- fatal error: torch/extension. h: No such file or directory
- CVPR 2022 quality paper sharing
- Upgrade MySQL 5.1 to 5.67
- Special analysis of China's digital technology in 2022
- pgpool-II 4.3 中文手册 - 入门教程
- Connect PHP to MySQL via PDO ODBC
- Upgrade MySQL 5.1 to 5.611
- cadence SPB17. 4 - Active Class and Subclass
猜你喜欢
WPS品牌再升级专注国内,另两款国产软件低调出国门,却遭禁令
Why disable foreign key constraints
cadence SPB17.4 - Active Class and Subclass
服务器中毒了怎么办?服务器怎么防止病毒入侵?
幂等性的处理
Pgpool II 4.3 Chinese Manual - introductory tutorial
Configuration of multi spanning tree MSTP
API IX JWT auth plug-in has an error. Risk announcement of information disclosure in response (cve-2022-29266)
山寨版归并【上】
【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope
随机推荐
C language --- string + memory function
编译,连接 -- 笔记
现在做自媒体能赚钱吗?看完这篇文章你就明白了
移动app软件测试工具有哪些?第三方软件测评小编分享
fatal error: torch/extension. h: No such file or directory
提取不重复的整数
Go语言数组,指针,结构体
Why disable foreign key constraints
pywintypes.com_error: (-2147221020, ‘无效的语法‘, None, None)
Upgrade MySQL 5.1 to 5.68
Application of Bloom filter in 100 million flow e-commerce system
北京某信护网蓝队面试题目
shell脚本中的DATE日期计算
How to test mobile app?
php函数
一刷314-剑指 Offer 09. 用两个栈实现队列(e)
软件性能测试报告起着什么作用?第三方测试报告如何收费?
Codejock Suite Pro v20. three
Temporal model: long-term and short-term memory network (LSTM)
What are the mobile app software testing tools? Sharing of third-party software evaluation