B and E might be custom commands on your end? on a completely unmodded version of vim on my mac those commands aren't working. but the regex-ish ^ and $ definitely work to move you to the beginning or end of the line in command mode.
A small but important clarification: 0 brings the cursor to the beginning of the line, while ^ brings it to the first character of the line. I.E. the first character, no matter if it's at column 1 or 1+n (that's is no matter what's the indentation of the line).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
B
andE
might be custom commands on your end? on a completely unmodded version of vim on my mac those commands aren't working. but the regex-ish^
and$
definitely work to move you to the beginning or end of the line in command mode.stackoverflow.com/questions/105721...
They're not custom, no.
Try
:help B' and
:help E'.Hint: WORD versus WORDS.
And 0 also takes you to the beginning of the line if you didn't know.
weird, they don't work on mac vim out of the box. there must be a setting that gets flipped or changed that's not mentioned here.
Hey @worc any chance for an exact version?
a
vim --version
prints this:A small but important clarification:
0
brings the cursor to the beginning of the line, while^
brings it to the first character of the line. I.E. the first character, no matter if it's at column 1 or 1+n (that's is no matter what's the indentation of the line).