標籤:
這是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值能夠調整自己主動縮排長度
-----------------------------------------------------------------
著作權聲明:本文部落格原創文章。部落格,未經同意,不得轉載。
vim for windows download and installation