標籤:vim設定檔
vim設定檔 .vimrc
"winpos 5 5 " 設定視窗位置
"set lines=40 columns=155 " 設定視窗大小
set nu " 顯示行號
set go= " 不要圖形按鈕
"color asmanian2 " 設定背景主題
set guifont=Courier_New:h10:cANSI " 設定字型
"syntax on " 文法高亮
autocmd InsertLeave * se nocul " 用淺色高亮當前行
autocmd InsertEnter * se cul " 用淺色高亮當前行
"set ruler " 顯示尺規
set showcmd " 輸入的命令顯示出來,看的清楚些
"set cmdheight=1 " 命令列(在狀態行下)的高度,設定為1
"set whichwrap+=<,>,h,l " 允許backspace和游標鍵跨越行邊界(不建議)
"set scrolloff=3 " 游標移動到buffer的頂部和底部時保持3行距離
set novisualbell " 不要閃爍(不明白)
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")} "狀態行顯示的內容
set laststatus=1 " 啟動顯示狀態行(1),總是顯示狀態行(2)
set foldenable " 允許摺疊
set foldmethod=manual " 手動摺疊
"set background=dark "背景使用黑色
set nocompatible "去掉討厭的有關vi一致性模式,避免以前版本的一些bug和局限
" 顯示中文協助
if version >= 603
set helplang=cn
set encoding=utf-8
endif
" 設定色彩配置
"colorscheme murphy
"字型
"if (has("gui_running"))
" set guifont=Bitstream\ Vera\ Sans\ Mono\ 10
"endif
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936
set fileencoding=utf-8
if has("gui_running")
"colorscheme default " It doesn‘t matter whether you comment this or not
:
else
colorscheme desert " I‘d like to use modified desert scheme instead
" of the default one, in the CLI mode of course;-)
endif
vim設定檔