xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

how to use Vim delete one line All In One

how to use Vim delete one line All In One

Vim - the ubiquitous text editor

Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X.

Vim is rock stable and is continuously being developed to become even better. Among its features are:
persistent, multi-level undo tree
extensive plugin system
support for hundreds of programming languages and file formats
powerful search and replace
integrates with many tools

https://www.vim.org/

https://github.com/vim/vim

solutions

  1. 在正常模式下(非编辑模式 i),光标选中所在行, 连续按两下d键,即可删除一整行 ✅

可视化模式 d - 剪切

image

  1. 编辑模式下,光标选中所在行(可以是多行), 按一下d键,即可删除一行(多行) 🚀

live demos

image

image

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

Vim Cheat Sheet

dd - 剪切当前行

https://vim.rtorr.com/lang/zh_cn/

https://github.com/rtorr/vim-cheat-sheet

refs

https://www.warp.dev/terminus/delete-line-vim

https://www.educative.io/answers/how-to-delete-lines-in-vim

图解 VIM

https://www.cnblogs.com/xgqfrms/tag/图解 VIM/

https://www.cnblogs.com/xgqfrms/tag/vim/



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-04-13 09:01  xgqfrms  阅读(15)  评论(1编辑  收藏  举报