1. 設定放在~/.vimrc 裡
2. colorscheme會自動到~/.vim/colors/ 目錄去找 .vim 的顏色設定
所以要把kolor.vim 放到這個目錄, .vimrc設定時不用加.vim副檔名
3. set ts=4要斟酌使用, 因為有些場合需要用到tab \t.
" Set syntax on
syntax on
" Indent automatically depending on filetype
filetype indent on
set autoindent
" show line number
" set nu
" automaticaly show matching brackets
set showmatch
" Case insensitive search
" set ic
" Higlhight search
set hls
" Wrap text instead of being on one line
set lbr
" Change colorscheme from default to delek
colorscheme kolor
" remove all trailing whitespace in file
autocmd BufWritePre * :%s/\s\+$//e
全站熱搜
留言列表