- 论坛徽章:
- 0
|
本帖最后由 jeung 于 2011-08-01 12:08 编辑
这些迹象告诉我vi会链到vim:- $ vi --version
- VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 17 2011 09:24:24)
- Included patches: 1-138
- Modified by <bugzilla@redhat.com>
- ……
复制代码- $ vi --help
- VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 17 2011 09:24:24)
- usage: vim [arguments] [file ..] edit specified file(s)
- or: vim [arguments] - read text from stdin
- or: vim [arguments] -t tag edit file where tag is defined
- Arguments:
- -- Only file names after this
- -v Vi mode (like "vi")
- ……
复制代码- $ vi
- VIM - Vi IMproved
- ~
- ~ version 7.3.138
- ~ by Bram Moolenaar et al.
- ~ Modified by <bugzilla@redhat.com>
- ~ Vim is open source and freely distributable
- ……
复制代码 但是接下来的结果却让我感觉以上的东西是在骗人- $ which vi
- /bin/vi
- $ stat /bin/vi
- File: `/bin/vi'
- Size: 721940 Blocks: 1416 IO Block: 4096 regular file
- Device: fd01h/64769d Inode: 14795 Links: 1
- Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
- Context: system_u:object_r:bin_t:s0
- ……
复制代码- $ which vim
- /usr/bin/vim
- $ stat /usr/bin/vim
- File: `/usr/bin/vim'
- Size: 1947180 Blocks: 3808 IO Block: 4096 regular file
- Device: fd01h/64769d Inode: 144361 Links: 1
- Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
- Context: system_u:object_r:bin_t:s0
- ……
复制代码 而且,vi进去是没有cindent的效果,而由vim进去则有
这是何解啊? |
|