当前位置:网站首页>vim正确加区间注释
vim正确加区间注释
2022-07-04 03:47:00 【fqbqrr】
fun!Jzsqj() range
"\加注释区间,是不行的."
"\找匹配注释"
let z=Qzss()
let z="'<,'>norm I" . z
"这样,不行,要犯错误"
exe z
"每个都要加上let"
norm ^[
"退出esc"
endf
改成如下:
fun!Jzs()range
"加注释区间let i=0;jjI注释串<esc>"
let z=Qzss()
let k=Schs()
"z为类型的注释串,k为可视区间行差."
norm 0;
let s:ss='norm! {}jI{}'
"先选定区间,再I加上内容,最后esc"
let m=Thgs(s:ss,k,z)
exe m
norm ^[
endf
边栏推荐
- Summary of Chinese remainder theorem
- Day05 錶格
- vue多级路由嵌套怎么动态缓存组件
- Es network layer
- Monitoring - Prometheus introduction
- The property of judging odd or even numbers about XOR.
- 【.NET+MQTT】.NET6 環境下實現MQTT通信,以及服務端、客戶端的雙邊消息訂閱與發布的代碼演示
- 用于TCP协议交互的TCPClientDemo
- EV6 helps the product matrix, and Kia is making efforts in the high-end market. The global sales target in 2022 is 3.15 million?
- pytest多进程/多线程执行测试用例
猜你喜欢

如何有效远程办公之我见 | 社区征文

Easy to win insert sort

Recursive structure

Consul of distributed service registration discovery and unified configuration management

Getting started with the go language is simple: go implements the Caesar password

Monitoring - Prometheus introduction

SQL statement strengthening exercise (MySQL 8.0 as an example)

渗透实战-guest账户-mimikatz-向日葵-sql提权-离线解密

pytest多进程/多线程执行测试用例
![[paddleseg source code reading] paddleseg custom data class](/img/88/37c535b371486db545abc392a685af.png)
[paddleseg source code reading] paddleseg custom data class
随机推荐
Formulaire day05
Epidemic strikes -- Thinking about telecommuting | community essay solicitation
How about the ratings of 2022 Spring Festival Gala in all provinces? Map analysis helps you show clearly!
Leetcode51.n queen
函数计算异步任务能力介绍 - 任务触发去重
Management and thesis of job management system based on SSM
GUI Graphical user interface programming (XIV) optionmenu - what do you want your girlfriend to wear on Valentine's day
潘多拉 IOT 开发板学习(HAL 库)—— 实验6 独立看门狗实验(学习笔记)
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
Simple dialogue system -- text classification using transformer
Pytest multi process / multi thread execution test case
Value transfer communication between components (parent to child, child to parent, brother component to value)
MySQL data query optimization -- data structure of index
vue多级路由嵌套怎么动态缓存组件
'2'&gt;' 10'==true? How does JS perform implicit type conversion?
SQL statement strengthening exercise (MySQL 8.0 as an example)
Graduation summary
[database I] database overview, common commands, view the table structure of 'demo data', simple query, condition query, sorting data, data processing function (single row processing function), groupi
How to dynamically cache components in Vue multi-level route nesting
[.NET + mqtt]. Mise en œuvre de la communication mqtt dans l'environnement net 6 et démonstration de code pour l'abonnement et la publication de messages bilatéraux du serveur et du client