W3Schools Learner's Blog

w3Schools programming knowledge summary website

div

11/26/2017

vim remove multiple lines | linux centos

vim command remove multiple lines is simple, let's go to learn how to remove multiple lines in vim editor.
1: set line number in vim editor, this is command.
:set number
or
:set nu
2: select the number of lines you want to delete , then run the following command, for example, i want to delete three to ten lines(include third and tenth line).
:3,10d
3: save and exit
:wq!

No comments:

Post a Comment

Note: only a member of this blog may post a comment.