以下是vim官方就vim的简介
-------------------------------------------------
WHAT IS VIM
Vim is an almost compatible version of the UNIX editor Vi. Many new features have been added: multi-level undo, syntax highlighting, command line history, on-line help, spell checking, filename completion, block operations, etc. There is also a Graphical User Interface (GUI) available.
This editor is very useful for editing programs and other plain text files. All commands are given with normal keyboard characters, so those who can type with ten fingers can work very fast. Additionally, function keys can be defined by the user, and the mouse can be used.
Vim runs under Amiga DOS, MS-DOS, MS-Windows (95, 98, Me, NT, 2000, XP, Vista, 7), Atari MiNT, Macintosh, BeOS, VMS, RISC OS, OS/2 and almost all flavours of UNIX. Porting to other systems should not be very difficult.
-------------------------------------------------
初次使用window下的vim,从网络上获得了不少配置介绍,这里再简单总结下window下vim下载安装和配置以备后用。
(1)下载安装。官方下载http://www.vim.org/,双击安装;
(2)设置windows用户环境变量PATH,使得用户操作方便,可以直接"开始-运行"进入vim
(3)配置vim运行脚本_vimrc,使得符合自己使用习惯,我的_vimrc是在默认_vimrc中添加了以下设置:
-----------------------------------------------------------------
set go=
set guifont=Monospace:h10,Consolas:h10
set tabstop=4 或者set ts=4可以设置键盘制表符占有的字符长度为4
set cindent 将缩进(indentation)风格调整为C语言缩进风格,设置后编辑换行时可以实现自动缩进
set shiftwidth=4 设置shiftwidh值可以调整自动缩进长度
-----------------------------------------------------------------