What is the difference between ^ and _ for cursor movement
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality
cursor-movement normal-mode
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality
cursor-movement normal-mode
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality
cursor-movement normal-mode
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
They both seem to move the cursor to the first non-blank character of the current line and I wonder what was the reason for duplicating this functionality
cursor-movement normal-mode
cursor-movement normal-mode
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 6 hours ago
loxs
1132
1132
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
loxs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
Hello and welcome to this site!
:help left-right-motions
is your friend here.
The difference is that _
accepts a [count]
before it, citing the manual:
_ <underscore> [count] - 1 lines downward, on the first non-blank
character linewise.
while:
^ To the first non-blank character of the line.
exclusive motion.
Obviously, _
by itself is equivalent to 1_
, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^
).
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
Hello and welcome to this site!
:help left-right-motions
is your friend here.
The difference is that _
accepts a [count]
before it, citing the manual:
_ <underscore> [count] - 1 lines downward, on the first non-blank
character linewise.
while:
^ To the first non-blank character of the line.
exclusive motion.
Obviously, _
by itself is equivalent to 1_
, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^
).
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
add a comment |Â
up vote
4
down vote
accepted
Hello and welcome to this site!
:help left-right-motions
is your friend here.
The difference is that _
accepts a [count]
before it, citing the manual:
_ <underscore> [count] - 1 lines downward, on the first non-blank
character linewise.
while:
^ To the first non-blank character of the line.
exclusive motion.
Obviously, _
by itself is equivalent to 1_
, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^
).
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
Hello and welcome to this site!
:help left-right-motions
is your friend here.
The difference is that _
accepts a [count]
before it, citing the manual:
_ <underscore> [count] - 1 lines downward, on the first non-blank
character linewise.
while:
^ To the first non-blank character of the line.
exclusive motion.
Obviously, _
by itself is equivalent to 1_
, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^
).
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Hello and welcome to this site!
:help left-right-motions
is your friend here.
The difference is that _
accepts a [count]
before it, citing the manual:
_ <underscore> [count] - 1 lines downward, on the first non-blank
character linewise.
while:
^ To the first non-blank character of the line.
exclusive motion.
Obviously, _
by itself is equivalent to 1_
, so the outcome is 0 lines downward, on the first non-blank character linewise, which means the current line (just like ^
).
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 6 hours ago
Mr Shunz
1562
1562
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Mr Shunz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
add a comment |Â
2
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
2
2
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
@lox You might also want to read this to get better at using Vim's documentation
– statox♦
4 hours ago
add a comment |Â
loxs is a new contributor. Be nice, and check out our Code of Conduct.
loxs is a new contributor. Be nice, and check out our Code of Conduct.
loxs is a new contributor. Be nice, and check out our Code of Conduct.
loxs is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17404%2fwhat-is-the-difference-between-and-for-cursor-movement%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password