Search code examples
vimshortcuttext-cursor

Vim moving cursor to the beginning of the next line


In Vim, is there a key moving cursor to the beginning of the next line?

j moves the cursor to the corresponding position of the current position in the next line. I'm looking for a single key that could move the cursor to position 0 irrespective of the cursor position in the current line.


Solution

  • The + motion moves to the first non-blank character in the next ([count]) line. That fulfills your requirement if there's no indent. With indent, you can use +0 or j0.