How do I add a new line in Vim?

How do I add a new line in Vim?
Answer
Starting in normal mode, you can press O to insert a blank line before the current line, or o to insert one after. O and o (“open”) also switch to insert mode so you can start typing. To add 10 empty lines below the cursor in normal mode, type 10o<Esc> or to add them above the cursor type 10O<Esc> .
 

Tìm kiếm

Back
Top