vim: delete the first 2 spaces for multiple lines

前端 未结 7 1556
无人及你
无人及你 2020-12-22 18:36

What\'s the easiest way to delete the first 2 spaces for each line using VIM? Basically it\'s repeating \"2x\" for each line.

Clarification: here the assumption is t

7条回答
  •  粉色の甜心
    2020-12-22 19:24

    1. Enter visual block mode with Ctrl-V (or Ctrl-Q if you use Ctrl-V for paste);
    2. Select the area to delete with the arrows;
    3. Then press d to delete the selected area.
    4. Press Esc

提交回复
热议问题