当前位置:网站首页>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
边栏推荐
- Calculate the number of occurrences of a character
- Upgrade MySQL 5.1 to 5.69
- Why is IP direct connection prohibited in large-scale Internet
- What is CNAs certification? What are the software evaluation centers recognized by CNAs?
- Cookie&Session
- Application of Bloom filter in 100 million flow e-commerce system
- Go language, condition, loop, function
- Temporal model: long-term and short-term memory network (LSTM)
- 提取不重复的整数
- MySQL Cluster Mode and application scenario
猜你喜欢
Pgpool II 4.3 Chinese Manual - introductory tutorial
腾讯Offer已拿,这99道算法高频面试题别漏了,80%都败在算法上
考试考试自用
Redis master-slave replication process
服务器中毒了怎么办?服务器怎么防止病毒入侵?
Single architecture system re architecture
Cookie&Session
时序模型:长短期记忆网络(LSTM)
What if the server is poisoned? How does the server prevent virus intrusion?
【AI周报】英伟达用AI设计芯片;不完美的Transformer要克服自注意力的理论缺陷
随机推荐
多级缓存使用
北京某信护网蓝队面试题目
Basic concepts of website construction and management
What role does the software performance test report play? How much is the third-party test report charged?
c语言---字符串+内存函数
How did the computer reinstall the system? The display has no signal
Advantages, disadvantages and selection of activation function
Timing model: gated cyclic unit network (Gru)
什么是CNAS认证?CNAS认可的软件测评中心有哪些?
PHP classes and objects
Redis主从复制过程
s16. One click installation of containerd script based on image warehouse
编译,连接 -- 笔记
Mobile finance (for personal use)
Single architecture system re architecture
推荐搜索 常用评价指标
基于 TiDB 的 Apache APISIX 高可用配置中心的最佳实践
时序模型:门控循环单元网络(GRU)
Special analysis of China's digital technology in 2022
Neodynamic Barcode Professional for WPF V11. 0