码迷,mamicode.com
首页 > 系统相关 > 详细

vim :g

时间:2018-07-29 00:49:26      阅读:235      评论:0      收藏:0      [点我收藏+]

标签:question   second   tps   ack   eve   cond   removing   pos   tac   

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

标签:question   second   tps   ack   eve   cond   removing   pos   tac   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!