vim :g
https://stackoverflow.com/questions/1946738/vim-how-to-delete-every-second-row
An elegant (and efficient) way to accomplish the task is to issue the :+delete
command removing the line next to the current one, on every line using the :global
command.
:g/^/+d
http://vim.wikia.com/wiki/Power_of_g
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步