If I want to select particular text of line and delete lines, how can I do that in vi (give the simplest means)?
|
feedback
|
migrated from stackoverflow.com Aug 2 '10 at 8:56
This question came from our site for professional and enthusiast programmers.
|
You can also use "V" in view mode to launch "VISUAL" mode. Select your lines and type "d" to delete them. | |||
|
feedback
|
|
Move to the line you want to delete, either using the arrow keys or the | |||||
feedback
|
|
go to the first line you wish to delete, and type (in view mode) | |||
|
feedback
|
|
Another tip: if you want to delete a text paragraph, move to beginning of that paragraph with { and then type d} Or, in other words, {d} | |||||||||||||
feedback
|
