We previously learned about various text objects. In this section we learn how they can help us edit our documents.
Initial Conditions
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
NORMALTop1:1
Move the cursorvi(
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
VISUALTop1:21
Initial Conditions
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
NORMALTop1:21
Move the cursorva(
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
VISUALTop1:22
Move the cursor (again)
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
NORMALTop1:22
Move the cursor (again)vi{
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
VISUAL60%3:22
Move the cursor (again)
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
NORMAL60%3:21
Move the cursor (again)va{
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
VISUAL80%4:1
Move the cursor (again)
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
NORMAL40%2:1
Move the cursor (again)vi[
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
VISUAL40%2:26
Move the cursor (again)
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
NORMAL40%2:26
Move the cursor (again)va[
function·sum(one,·two)·{
····const·list·=·[one,·two];
····return·sum(list);
}
VISUAL40%2:27