📄 l4.1
字号:
#print More Movement - Words and Sentences Actually, vi knows about much more than just characters and lines in files. It has a concept of words and sentences. Vi defines a word in oneof two ways: 1) Letters, digits and '_' surrounded by spaces or punctuation 2) Any characters at all, surrounded by spaces Both definitions have their uses and vi has two parallel sets of commandsfor dealing with them. In the list below, the lower-case commands use thefirst definition and the upper-case ones use the second one. w W = Move the cursor forward one word. b B = Move the cursor backward one word. e E = Move the cursor to the end of the current word or, if already there, to the end of the next word forward. For sentences, vi uses ')' to move forward one sentence and '(' to movebackward one sentence. Type 'ready' now to try out the word and sentence commands.#user#create WordsVi defines a word in one of two ways: 1) Letters, digits and '_' surrounded by spaces or punctuation 2) Any characters at all, surrounded by spaces In the list below, the lower-case commands use the first definition andthe upper-case ones use the second one. w W = Move the cursor forward one word. b B = Move the cursor backward one word. e E = Move the cursor to the end of the current word or, if already there, to the end of the next word forward. For sentences, vi uses ')' to move forward one sentence and '(' to movebackward one sentence.----------------------------------------------------------------------------#cat /usr/lib/learn/vi/longtext >> Wordsvi Words#next4.2 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -