自用的vim脚本

复制当前标签的所有内容

bash 复制代码
normal! gg
normal! v
normal! G
normal! $
normal! y

复制当前标签的所有内容到Windows剪贴板

bash 复制代码
normal! gg
normal! v
normal! G
normal! $
normal! y
call setreg('+', getreg('"'))

删除当前标签的所有内容

bash 复制代码
normal! gg
normal! h
normal! v
normal! G
normal! $
normal! d
相关推荐
Codigger官方2 天前
2026年4月Vim生态最新官方消息
linux·编辑器·vim
aidesignplus3 天前
从平方到线性:Mamba如何挑战Transformer的长序列效率瓶颈?
人工智能·python·深度学习·vim·transformer
李日灐5 天前
<5> Linux 开发工具:包管理 + Vim 实操 + GCC 编译流程 + 静态与动态链接详解
linux·运维·服务器·面试·vim·gcc
坚持就完事了5 天前
再谈编辑器Vim
linux·编辑器·vim
脆皮炸鸡7556 天前
进程的程序替换
linux·经验分享·笔记·vim·学习方法
buhuizhiyuci6 天前
笑谈vim的快捷方式和简易配置
linux·编辑器·vim
冷风阿健7 天前
Linux 源码安装 Vim 9.2.0272 完整步骤(修复 CVE-2026-34714)
linux·运维·vim
白菜欣7 天前
Linux —《从零上手Vim:核心用法全解析》
linux·编辑器·vim
Chockong8 天前
11_vim自动插入文件头模板(.c/.cpp/.py/.txt)设置
c语言·vim
dgvri9 天前
Node.js使用教程
node.js·编辑器·vim