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
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
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
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
New contributor
New contributor
asked 6 hours ago
loxs
1132
1132
New contributor
New contributor
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
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
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
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
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
New contributor
answered 6 hours ago
Mr Shunz
1562
1562
New contributor
New contributor
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