2011年5月31日 星期二

Linux-vim gvim settings

#get colors ex:freya (my favorite color

#set
mkdir ~/.vim
cd .vim
mkdir colors
cp colorfile ~/.vim/colors/colorfile

#set vimrc(~/.vimrc)
#gvim_Startup Settings
set autoindent (自動縮排
colorscheme colorname (預設顏色 ex:colorscheme freya
set nu(行號

#if it can't work ,check the file's right
ls -all (to check colorfile's right

# 4space replace tab(tab usually
set expandtab (insert space whenever tab be pressed
set tabstop=4 (the characters of one tab, use :retab that make file match this settings
set shiftwidth=4 (the insertion of the indent

#有可能會有格式錯誤情況
doc2unix colorfile

此提供很多顏色可預覽http://code.google.com/p/vimcolorschemetest/

沒有留言:

張貼留言