"=========================================================================
"" DesCRiption: 適合自己使用的vimrc文件,for Linux/Windows, GUI/Console
"
"" Last Change: 2010年08月02日 15時13分
"
"" Version: 1.80
"
""=========================================================================
set tags=/root/linux-3.17.2/tags
set nocompatible " 關閉 vi 兼容模式
syntax on " 自動語法高亮
set number " 顯示行號
set autoindent " 自動對齊
set smartindent " 智能對齊
set cursorline " 突出顯示當前行
set ruler " 打開狀態欄標尺
set ts=1 " 設定 tab 長度爲 4
"set tabstop=1 " 設定 tab 長度爲 4
set expandtab " use space instead of tab
set shiftwidth=0 " 設定 > 命令移動時的寬度爲 4
set softtabstop=1 " 使得按退格鍵時可以一次刪掉 4 個空格
set nobackup " 覆蓋文件時不備份
set autochdir " 自動切換當前目錄爲當前文件所在的目錄
filetype plugin indent on " 開啓插件
set backupcopy=yes " 設置備份時的行爲爲覆蓋
set ignorecase smartcase " 搜索時忽略大小寫,但在有一個或以上大寫字母時仍保持對大小寫敏感
set nowrapscan " 禁止在搜索到文件兩端時重新搜索
set incsearch " 輸入搜索內容時就顯示搜索結果
set hlsearch " 搜索時高亮顯示被找到的文本
set noerrorbells " 關閉錯誤信息響鈴
set novisualbell " 關閉使用可視響鈴代替呼叫
set t_vb= " 置空錯誤鈴聲的終端代碼
" set showmatch " 插入括號時,短暫地跳轉到匹配的對應括號
" " set matchtime=2 " 短暫跳轉到匹配括號的時間
" set magic " 設置魔術
" set hidden " 允許在有未保存的修改時切換緩衝區,此時的修改由
" vim 負責保存
" set guioptions-=T " 隱藏工具欄
" set guioptions-=m " 隱藏菜單欄
" set smartindent " 開啓新行時使用智能自動縮進
set backspace=indent,eol,start
" " 不設定在插入狀態無法用退格鍵和 Delete
" 鍵刪除回車符
" set cmdheight=1 " 設定命令行的行數爲
" 1
" set laststatus=2 " 顯示狀態欄
" (默認值爲 1, 無法顯示狀態欄)
" set statusline=\ % @=((foldclosed(line('.'))
" " 用空格鍵來開關摺疊
" " return OS type,
" eg: windows, or
" linux, mac, et.st..
" function! MySys()
" if has("win16")
" || has("win32")
" || has("win64")
" || has("win95")
" return
" "windows"
" elseif
" has("unix")
" return
" "linux"
" endif
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
set nonu
linux的vimrc配置文件
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.