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

📄 l6.3

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3
字号:
#print	    Misc. Useful Features - The Outer Editor II   When you invoke vi, you execute a command like 'vi <filename>'.If you want to look at several files, one at a time, you can use a command like		vi <file1> <file2> <file3> <file4> ...This would be equivalent to running vi on each file separately.Once you've done this, however, how to you tell vi to go on to the next file?You use the ':n' command, of course.  If you have made changes that you don'tcare about saving, you'll have to type ':n!'.   Often, you'll want to read in another file and have its contents insertedinto the file at a certain point.  For this vi has the ':r' command.  Just say':r <filename>' and vi will insert that file into yours at the current line.   Finally, if you're inside vi and want to execute a normal shell command,just type		:!<command>where <command> is the command you want to execute.  You can try these commandsout on your own.  Once again, you can find out more by doing the 'learn editor'sequence.  Type 'vi junk stuff' to practice with ex.#cp %s/longtext longtext#create junk   You have entered vi with two files.  Before going on to the nextone you may be interested to know that whenever you are in vi, youcan get into ex by typing Q.  The cursor will move to the bottom ofthe screen and you will have a permanent colon prompt sign.  You canalways get from ex back into vi with the command 'vi' followed by thereturn key (this time you do not type in a file name).  Try that now:type Q to get to ex, and then vi to get back to vi.   Now type :n to move on to edit the next file.#create stuff   This is the next file and is very short.  There is a file called'longtext', a copy of which you can read into this file after thecurrent line by typing ':r longtext'.Put the cursor on this line and try that, then type :wq and 'ready'.#user#next6.4  10

⌨️ 快捷键说明

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