⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 l2.3

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3
字号:
#print		    Basic Movement - File movements   Now you'd probably like to be able to move around in files which arelonger than one page, eh?  You could probably look through the whole thingusing '-' and return to go up and down a line at a time, but...   The ^D and ^U commands are used for moving by half-pages. (Remember, ^Dmeans hitting the D key while holding down the 'Control' button...).  ^D willmove the screen down a half-page in the file.  ^U, oddly enough, does thereverse, moving you up a half-page.   If you're in more of a hurry, try ^F and ^B, which move you forward andbackward a full page at a time, respectively.   If you know exactly which line you want to go to (i.e. you know its linenumber) then the 'G' command was made for you.  You just type the linenumber followed by a 'G' and vi will 'go' to that line.  If you type 'G'without a preceding number, vi will go to the end of the file.  Here's alittle trick:  if you want to see line numbers in vi type ':set nu'.   Type 'ready' now to get practice in moving in larger files.#user#create Movement3   The commands for moving around in larger files are as follows:	^D - Scroll forward (down) a half-screen	^U - Scroll backward (up) a half-screen	^F - Page forward one full screen	^B - Page backward one full screen	 G - Go to a particular line.  56G goes to line	     56.  G goes to the end of the file.-----------------------------The text which follows is intended to serve as a practice file in this andfuture lessons.  You'll get a new copy of it each time, so don't worry aboutaccidentally messing it up.-----------------------------#cat /usr/lib/learn/vi/longtext >> Movement3vi Movement3#next2.4 10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -