粘貼版:
" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
" Vundle配置由此開始
" >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
set nocompatible "不去兼容vi
filetype off "關(guān)閉文件類型檢測
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" =======================================================
" 安裝插件寫在這之后
" =======================================================
"安裝Vundle插件
Plugin 'VundleVim/Vundle.vim'
"命令補全
Plugin 'Valloric/YouCompleteMe'
"中文文檔擎颖,安裝好之后默認生效不用配置
Plugin 'yianwillis/vimcdoc'
"狀態(tài)欄艺蝴,安裝好之后默認生效不用配置
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
"markdown文檔實時預(yù)覽
" Plugin 'godlygeek/tabular'
" Plugin 'plasticboy/vim-markdown'
" Plugin 'suan/vim-instant-markdown'
" =======================================================
" 安裝插件寫在這之前
" =======================================================
call vundle#end() " required
filetype plugin on " required
" :PluginList - 查看已經(jīng)安裝的插件
" :PluginInstall - 安裝插件
" :PluginUpdate - 更新插件
" :PluginSearch - 搜索插件苇经,例如 :PluginSearch xml就能搜到xml相關(guān)的插件
" :PluginClean - 刪除插件售碳,把安裝插件對應(yīng)行刪除啰脚,然后執(zhí)行這個命令即可
" :h - 獲取幫助
" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
" Vundle的配置到此結(jié)束
" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
" set rtp=~/.vim/bundle/YoucompleteMe
" vim主題温兼,把Tomorrow-Night-Bright.vim等文件copy到~/.vim/colors/目錄內(nèi)
" ===========================================
" colorscheme molokai
" colorscheme Tomorrow-Night
" colorscheme Tomorrow-Night-Eighties
colorscheme Tomorrow-Night-Bright "我挺喜歡這個顏色的
" colorscheme solarized
set guifont=Monaco:h16 "字體大小
syntax on "語法高亮度顯示,這個打開后主題才能生效
set ts=4 "設(shè)置一個tab等于4個空格
set expandtab "輸入tab時雹嗦,自動將其轉(zhuǎn)化為空格
set autoindent "把當前行的對齊格式應(yīng)用到下一行(自動縮進)
set backspace=2 "蘋果電腦在vim中刪除鍵不管用庸毫,需要設(shè)置這個屬性
set showmatch "顯示括號匹配
set ruler "顯示光標當前位置(右下角顯示當前光標坐標)
" set nu! "顯示行號
set cursorline "突出顯示當前行
" set cursorcolumn "突出顯示當前列
" set laststatus=2 "總是顯示狀態(tài)欄
"設(shè)置粘貼模式:
"在Vim中通過鼠標右鍵粘貼時會在行首多出許多縮進和空格仔拟,
"通過set paste可以在插入模式下粘貼內(nèi)容時不會有任何格式變形、胡亂縮進等問題飒赃。
set paste
"支持中文不亂碼
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
"啟用鼠標
" set mouse=a
" set selection=exclusive
" set selectmode=mouse,key
"抄大仙的配置
"====================================================================
set showcmd "輸入的命令顯示出來利花,在右下角顯示,比如gg载佳、dw命令等
set updatetime=3000 "自動存盤時間/毫秒
set wildmenu "更好的命令補全
set belloff=all "不發(fā)出滴滴聲
set ttimeoutlen=100 "等待時間
set history=1024 "歷史
" set linebreak "更智能的自動折行顯示
" set showmode "顯示當前模式
" set nobackup "不備份
" set display=lastline "不顯示 @
" set completeopt=menu "不顯示補全預(yù)覽窗口
" set scrolloff=3 "滾動時光標與邊界的距離
" set listchars=tab:\|\ ,trail:· "空白字符
" set fillchars=vert:┇,fold:- "分割線
" set hidden "切換buffer不需要保存