首页 > 系统服务 > 详细

vim :g

时间:2018-07-29 00:32:14      阅读:224      评论:0      收藏:0      [点我收藏+]

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

vim :g

原文:https://www.cnblogs.com/itzxy/p/9383963.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!