当前位置:网站首页>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
边栏推荐
- 激活函数的优缺点和选择
- Sorting and replying to questions related to transformer
- Multitimer V2 reconstruction version | an infinitely scalable software timer
- Mobile finance (for personal use)
- One brush 313 sword finger offer 06 Print linked list from end to end (E)
- Calculate the number of occurrences of a character
- Cap theorem
- 【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope
- 小程序知识点积累
- Single architecture system re architecture
猜你喜欢

Mobile finance (for personal use)

mysql乐观锁解决并发冲突

【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope

Application of Bloom filter in 100 million flow e-commerce system

Independent operation smart farm Innovation Forum

一刷314-剑指 Offer 09. 用两个栈实现队列(e)

为啥禁用外键约束

移动金融(自用)

2022年中国数字科技专题分析

Best practices of Apache APIs IX high availability configuration center based on tidb
随机推荐
PHP PDO ODBC将一个文件夹的文件装载到MySQL数据库BLOB列,并将BLOB列下载到另一个文件夹
软件性能测试报告起着什么作用?第三方测试报告如何收费?
PHP operators
Load Balancer
Connect PHP to MySQL via PDO ODBC
电脑怎么重装系统后显示器没有信号了
布隆过滤器在亿级流量电商系统的应用
Independent operation smart farm Innovation Forum
Explanation 2 of redis database (redis high availability, persistence and performance management)
删除字符串中出现次数最少的字符
shell脚本中的DATE日期计算
s16.基于镜像仓库一键安装containerd脚本
基于 TiDB 的 Apache APISIX 高可用配置中心的最佳实践
Codejock Suite Pro v20.3.0
【Leetcode-每日一题】安装栅栏
What if the server is poisoned? How does the server prevent virus intrusion?
[leetcode daily question] install fence
Control structure (I)
幂等性的处理
Go language, condition, loop, function