当前位置:网站首页>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
边栏推荐
- Why is it recommended that technologists write blogs?
- 深度优先搜索简要讲解(附带基础题)
- Objective C attribute keyword
- Easy to win insert sort
- Third party login initial version
- Huawei cloud Kunpeng engineer training (Guangxi University)
- PostgreSQL users cannot create table configurations by themselves
- 深入浅出对话系统——使用Transformer进行文本分类
- ctf-pikachu-CSRF
- Formulaire day05
猜你喜欢
[untitled]
Wechat official account web page authorization
What kind of experience is it when the Institute earns 20000 yuan a month!
What are the virtual machine software? What are their respective functions?
Add token validation in swagger
Mitsubishi M70 macro variable reading Mitsubishi M80 public variable acquisition Mitsubishi CNC variable reading acquisition Mitsubishi CNC remote tool compensation Mitsubishi machine tool online tool
Jenkins configures IP address access
Recursive structure
深度优先搜索简要讲解(附带基础题)
Redis notes (I) Linux installation process of redis
随机推荐
Pytest multi process / multi thread execution test case
Is it safe to buy insurance for your children online? Do you want to buy a million dollar medical insurance for your children?
what does ctrl + d do?
Recursive structure
Balance between picture performance of unity mobile game performance optimization spectrum and GPU pressure
三菱M70宏变量读取三菱M80公共变量采集三菱CNC变量读取采集三菱CNC远程刀补三菱机床在线刀补三菱数控在线测量
Development of digital collection trading platform development of digital collection platform
What are the virtual machine software? What are their respective functions?
The property of judging odd or even numbers about XOR.
Day05 錶格
ctf-pikachu-CSRF
CSP drawing
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Detailed explanation of PPTC self recovery fuse
logistic regression
【华为云IoT】读书笔记之《万物互联:物联网核心技术与安全》第3章(上)
JDBC advanced
[PaddleSeg 源码阅读] PaddleSeg计算Dice
pytest多进程/多线程执行测试用例
GUI Graphical user interface programming (XIV) optionmenu - what do you want your girlfriend to wear on Valentine's day