当前位置:网站首页>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
边栏推荐
猜你喜欢
WPS brand was upgraded to focus on China. The other two domestic software were banned from going abroad with a low profile
Configuration of multi spanning tree MSTP
Sorting and replying to questions related to transformer
【AI周报】英伟达用AI设计芯片;不完美的Transformer要克服自注意力的理论缺陷
Temporal model: long-term and short-term memory network (LSTM)
Multi level cache usage
API IX JWT auth plug-in has an error. Risk announcement of information disclosure in response (cve-2022-29266)
电脑怎么重装系统后显示器没有信号了
Why is IP direct connection prohibited in large-scale Internet
Cookie&Session
随机推荐
fatal error: torch/extension. h: No such file or directory
开源项目推荐:3D点云处理软件ParaView,基于Qt和VTK
Explanation of redis database (IV) master-slave replication, sentinel and cluster
Codejock Suite Pro v20.3.0
PHP PDO ODBC将一个文件夹的文件装载到MySQL数据库BLOB列,并将BLOB列下载到另一个文件夹
Extract non duplicate integers
Independent operation smart farm Innovation Forum
Go language, array, pointer, structure
计算某字符出现次数
什么是CNAS认证?CNAS认可的软件测评中心有哪些?
Configuration of multi spanning tree MSTP
Temporal model: long-term and short-term memory network (LSTM)
What is CNAs certification? What are the software evaluation centers recognized by CNAs?
WPS品牌再升级专注国内,另两款国产软件低调出国门,却遭禁令
Today's sleep quality record 76 points
Upgrade MySQL 5.1 to 5.68
Accumulation of applet knowledge points
携号转网最大赢家是中国电信,为何人们嫌弃中国移动和中国联通?
c语言---字符串+内存函数
考试考试自用