Jim’s blog

April 27, 2005

Vim的一些常用設置

【7:42 pm By Jim】

上手前覺得怎麽還會有VIM這樣難用難看的Editor;
上手後覺得怎麽還會有別的如此難用難看的Editor。

以上是本人用VIM的總結。VIM雖然好用,但如果不是從源碼安裝的話,linux很多distro安裝後VIM預置的變量值都不一樣的,主要是一些初始化的設定不合我的習慣,需要進行一些設置,以Windows下的gvim爲例,設置vimrc(Windows下gvim的_vimrc默認位置是Program Files下的VIM子目錄):

set autoindent(啓用自動縮進)
set nu(顯示行號)
set tabstop=4(設置tab寬度爲4)
set nobackup(禁用備份)
set ignorecase(搜索時忽略大小寫)
set expandtab(用空格代替tab)
set foldmethod=marker(標記摺疊)
compiler javac(設置編譯器爲javac)
colorscheme torte(設置colorscheme爲torte)

This work is licensed under a Creative Commons License .
Get free blog up and running in minutes with Blogsome | Theme designs available here