![]() To illustrate the difference between 0 and ^, take a look at the following example. #G / #gg / :# – move to a specified line number (replace # with the line number).^ – jump to the first (non-blank) character of the line.0 (zero) – jump to the beginning of the line.However, if you use B, the cursor moves all the way back to: “ step-by-step” since there is no whitespace between these characters. The first time you press b, the cursor moves back to “step-by- step”. W – move to the start of the next tokenįor instance, you have the noun phrase “step-by-step” as part of a text and the cursor is placed at the end of it.For example, if you run 5j the cursor moves down 5 lines. You can also use these keys with a number as a prefix to move in a specified direction multiple times. ![]() The basic keys for moving the cursor by one character are: On the other hand, a token is anything separated by whitespace and can include punctuation.Īdditionally, you can move to different parts of a text by screen view. You can move the cursor within a file by single characters, words, tokens, or lines.Īccording to Vim, a word can be a group of letters, numbers, and underscores.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |