vi命令打开文件
来源:互联网 发布:海水无机氮数据 编辑:程序博客网 时间:2024/05/16 07:51
文摘摘录 学习vim 书籍:
vi is the Unix command that invokes the vi editor for an existing file or for
a brand new file. The syntax for the vi command is:
$ vi [filename]
The brackets shown on the above command line indicate that the filename is optional.
The brackets should not be typed. The $ is the Unix prompt. If the filename is omitted,
vi will open an unnamed buffer. You can assign the name when you write the buffer
into a file.
When you want to open a new file in a directory, give a new filename with the vi
command. For example, if you want to open a new file called practice in the current
directory, you would enter:
$ vi practice
Since this is a new file, the buffer is empty and the screen appears as follows:
~
~
~
"practice" [New file]
The tildes (~) down the lefthand column of the screen indicate that there is no text in
the file, not even blank lines. The prompt line (also called the status line) at the bottom
of the screen echoes the name and status of the file.
You can also edit any existing text file in a directory by specifying its filename. Suppose
that there is a Unix file with the pathname /home/john/letter. If you are already in
the /home/john directory, use the relative pathname. For example:
$ vi letter
brings a copy of the file letter to the screen.
If you are in another directory, give the full pathname to begin editing:
$ vi /home/john/letter
- vi命令打开文件
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令(转)
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- Git 使用vi或vim命令打开、关闭、保存文件
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- VI打开和编辑多个文件的命令
- Git 使用vi或vim命令打开、关闭、保存文件
- vi打开多文件
- 归并排序的非递归实现
- 过滤器的基本实现(责任链设计模式)
- servlet文件下载
- REST资源三要素
- c++使用curl库访问服务器并获取应答结果
- vi命令打开文件
- 送给北京地铁边上加班的程序员们(自驾也别疲劳驾驶哦)
- 真的过得飞快的色调
- 【Java】-利用天气查询API实现天气预报小窗体应用程序(一)
- myeclipse进入Myeclipse configuration center 如何关闭
- 一点小技巧,但是很实用--------R数据的保存与加载
- 用面向对象的方式去连接数据库
- 两个无线路由器桥接,电信ITV使用无线连接
- android ADB常用的命令