Linux:Vim Useful Tips: Difference between revisions
added vim howto page |
(No difference)
|
Latest revision as of 08:32, 21 August 2017
Insert text at the beginning of a multiline selection[edit]
* Use Ctrl+V to enter visual block mode * Move Up/Down to select the columns of text in the lines you want to comment. * Then hit Shift+i and type the text you want to insert. * Then hit Esc, wait 1 second and the inserted text will appear on every line.
Delete the fist character(s) on multiple lines[edit]
* Use Ctrl+V to enter visual block mode * Move Up/Down to select the columns * Then press d to delete the selected area