当前位置:网站首页>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定理
- PHP 的运算符
- 自动化测试框架常见类型▏自动化测试就交给软件测评机构
- WPS brand was upgraded to focus on China. The other two domestic software were banned from going abroad with a low profile
- 小程序知识点积累
- 移动金融(自用)
- Neodynamic Barcode Professional for WPF V11.0
- The El tree implementation only displays a certain level of check boxes and selects radio
- What are the mobile app software testing tools? Sharing of third-party software evaluation
- 北京某信护网蓝队面试题目
猜你喜欢
One brush 314 sword finger offer 09 Implement queue (E) with two stacks
Cookie&Session
使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群
mysql乐观锁解决并发冲突
Cap theorem
Recommended search common evaluation indicators
Single architecture system re architecture
Modèle de Cluster MySQL et scénario d'application
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
C language --- advanced pointer
随机推荐
Explanation of redis database (IV) master-slave replication, sentinel and cluster
One brush 313 sword finger offer 06 Print linked list from end to end (E)
C language --- string + memory function
What if the package cannot be found
s16. One click installation of containerd script based on image warehouse
服务器中毒了怎么办?服务器怎么防止病毒入侵?
Accumulation of applet knowledge points
Why is IP direct connection prohibited in large-scale Internet
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
Demonstration meeting on startup and implementation scheme of swarm intelligence autonomous operation smart farm project
幂等性的处理
pgpool-II 4.3 中文手册 - 入门教程
布隆过滤器在亿级流量电商系统的应用
Node. JS ODBC connection PostgreSQL
负载均衡器
删除字符串中出现次数最少的字符
开源项目推荐:3D点云处理软件ParaView,基于Qt和VTK
Go language, array, pointer, structure
Single architecture system re architecture
Date date calculation in shell script