how to insert new line in vim editor code example
Example 1: vim insert after cursor
a - insert (append) after the cursor
i - insert before the cursor
I - insert at the beginning of the line
A - insert (append) at the end of the line
o - append (open) a new line below the current line
O - append (open) a new line above the current line
ea - insert (append) at the end of the word
Example 2: add enter vim
" Quickly insert an empty new line without entering insert mode
nnoremap <Leader>o o<Esc>
nnoremap <Leader>O O<Esc>