- 论坛徽章:
- 1
|
vim 就是这样。
- *'endofline'* *'eol'* *'noendofline'* *'noeol'*
- 'endofline' 'eol' 布尔型 (缺省打开)
- 局部于缓冲区
- {Vi 无此功能}
- 写入文件时如果关闭本选项并且打开 'binary' 选项,文件的末行不写入
- <EOL>。编辑新文件时自动打开本选项,除非该文件的末行本没有 <EOL>,那时
- 本选项被复位。通常你不需要自己置位或者复位本选项。如果 'binary' 关闭,
- 写入文件时不使用本值。如果 'binary' 打开,本值被用于记住文件末行是否存
- 在 <EOL>,这样在写回文件时,就不会改变原来文件的使用方式。不过如果你愿
- 意改变之,可自便。
复制代码- *'endofline'* *'eol'* *'noendofline'* *'noeol'*
- 'endofline' 'eol' boolean (default on)
- local to buffer
- {not in Vi}
- When writing a file and this option is off and the 'binary' option
- is on, no <EOL> will be written for the last line in the file. This
- option is automatically set when starting to edit a new file, unless
- the file does not have an <EOL> for the last line in the file, in
- which case it is reset. Normally you don't have to set or reset this
- option. When 'binary' is off the value is not used when writing the
- file. When 'binary' is on it is used to remember the presence of a
- <EOL> for the last line in the file, so that when you write the file
- the situation from the original file can be kept. But you can change
- it if you want to.
复制代码
[ 本帖最后由 flw 于 2009-5-19 14:22 编辑 ] |
|