当前位置:网站首页>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
边栏推荐
- Cap theorem
- 大型互联网为什么禁止ip直连
- 【AI周报】英伟达用AI设计芯片;不完美的Transformer要克服自注意力的理论缺陷
- IronPDF for .NET 2022.4.5455
- Connect PHP to MySQL via PDO ODBC
- Neodynamic Barcode Professional for WPF V11. 0
- Application of Bloom filter in 100 million flow e-commerce system
- Node. JS ODBC connection PostgreSQL
- 【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope
- Modèle de Cluster MySQL et scénario d'application
猜你喜欢
Do we media make money now? After reading this article, you will understand
WPS品牌再升级专注国内,另两款国产软件低调出国门,却遭禁令
Redis master-slave replication process
Advantages, disadvantages and selection of activation function
2022年中国数字科技专题分析
Application of Bloom filter in 100 million flow e-commerce system
MySQL集群模式與應用場景
Knn,Kmeans和GMM
现在做自媒体能赚钱吗?看完这篇文章你就明白了
For examination
随机推荐
【Leetcode-每日一题】安装栅栏
MySQL集群模式與應用場景
shell脚本中的DATE日期计算
Rsync + inotify remote synchronization
删除字符串中出现次数最少的字符
pgpool-II 4.3 中文手册 - 入门教程
Neodynamic Barcode Professional for WPF V11.0
Multi level cache usage
Mobile finance (for personal use)
APISIX jwt-auth 插件存在错误响应中泄露信息的风险公告(CVE-2022-29266)
Independent operation smart farm Innovation Forum
PHP PDO ODBC loads files from one folder into the blob column of MySQL database and downloads the blob column to another folder
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
Best practices of Apache APIs IX high availability configuration center based on tidb
What if the server is poisoned? How does the server prevent virus intrusion?
Node. JS ODBC connection PostgreSQL
多生成树MSTP的配置
KNN, kmeans and GMM
mysql乐观锁解决并发冲突
使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群