?? 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 + -