1 There is an open file in Vim containing the following text

1. There is an open file in Vim containing the following text:
This; is; a;line;
The cursor is at the character n in “line”. What is difference in the resultant cursor
movement if you enter the command e or E?

Please explain shortly.

Solution

e ->Jumps to the end of the word . It considers punctuation.
Example:
This; is; a;line;
It has punctualtions in between words. So if we are at \'n\' , It will go to e in line.
So if we are at \'T\' , It will go to s in This.
So command e takes care of punctuation and goes till the end of the word.


E -> Jumps to the end of the word . It does not consider punctuation.
For Example: This; is; a;line;

1. If our cursor is at \'T\' it will go to ; in This; because it expects that is the end of the word
2. If our cursor is at \'a\' in a;line; it will go to ; in a;line; because it expects that is the end of the word.

So in both the cases it will go till the end means ;

(Which means Command E doesnt take punctuation into account where as Command e understands punctuation between words and take us to correct position i.e end of the word )


Let me know if there is any concern.

1. There is an open file in Vim containing the following text: This; is; a;line; The cursor is at the character n in “line”. What is difference in the resultant

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site