augroup filetype
autocmd! BufRead,BufNewFile BUILD set filetype=blade
augroup end
colo desertvim
set number
set autoindent
set smarttab
set smartcase
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set autoindentui
set hlsearch
set incsearch
set smartindent
set ruler
set showcmd
"set cursorline
set ignorecaseutf-8
set fenc=utf-8 "設定默認解碼
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,gb2312,utf-16,big5
set fenc=utf-8
set nocp "或者 set nocompatible 用於關閉VI的兼容模式
set number "顯示行號
set ai "或者 set autoindent vim使用自動對齊,也就是把當前行的對齊格式應用到下一行
set si "或者 set smartindent 依據上面的對齊格式,智能的選擇對齊方式
set tabstop=4 "設置tab鍵爲4個空格
set sw=4 "或者 set shiftwidth 設置當行之間交錯時使用4個空格
set ruler "設置在編輯過程當中,於右下角顯示光標位置的狀態行
set incsearch "設置增量搜索,這樣的查詢比較smart
set showmatch "高亮顯示匹配的括號
set matchtime=5 "匹配括號高亮時間(單位爲 1/10 s) set ignorecase "在搜索的時候忽略大小寫
syntax on "高亮語法
" 顯示 文件名
set statusline=%f%m%r%h%w%=[ASCII=\%03.3b]\ [HEX=\%02.2B]\ [%04l,%04v][%p%%]
set laststatus=2
au BufNewFile,BufRead *.cpp set syntax=cpp11cmd
set nocompatible " be iMproved, required
filetype off " requiredit
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()ast
" let Vundle manage Vundle, required
"Plugin 'gmarik/Vundle.vim'
"Plugin 'fatih/vim-go'require
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
let Tlist_Show_One_File=1 "不一樣時顯示多個文件的tag,只顯示當前文件的
let Tlist_Exit_OnlyWindow=1 "若是taglist窗口是最後一個窗口,則退出vim
let Tlist_Ctags_Cmd="/usr/bin/ctags" "將taglist與ctags關聯coding