![]() So, you can move to the beginning of the line, press v, move to the end of the line, and press d. Subsequent commands will apply to the selected text. The idea is that you enter visual mode from normal mode by pressing v and then selecting a section of text by moving the cursor over that text. Vim also has the idea of selection, though it can do it faster than other editors which use the mouse. They might grab the mouse and drag it over the line to select it. “ Select the line, then press delete.” That’s what most people will think to delete a line. Deleting a line in insert mode is the same as deleting any other piece of text: mash the backspace/delete key until that line is gone! Deleting Lines in Visual Mode It treats the file as a stream of text lines that you can transform with commands.ĭeleting Lines in Insert Mode
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |