set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
" Plugin 'tpope/vim-fugitive'
"
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
"
" Git plugin not hosted on GitHub
" Plugin 'git://git.wincent.com/command-t.git'
"
" git repos on your local machine (i.e. when working on your own plugin)
" Plugin 'file:///home/gmarik/path/to/plugin'
"
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
" Plugin 'user/L9', {'name': 'newL9'}
" My Bundles here:
" vim-scripts repos
" Syntax
Bundle 'asciidoc.vim'
Bundle 'confluencewiki.vim'
Bundle 'html5.vim'
Bundle 'JavaScript-syntax'
"Bundle 'mako.vim'
Bundle 'moin.vim'
Bundle 'python.vim--Vasiliev'
Bundle 'xml.vim'
" Color
Bundle 'desert256.vim'
Bundle 'Impact'
"Bundle 'matrix.vim'
Bundle 'vibrantink'
Bundle 'vividchalk.vim'
" Ftplugin
Bundle 'python_fold'
" Indent
"Bundle 'indent/html.vim'
Bundle 'IndentAnything'
Bundle 'Javascript-Indentation'
Bundle 'mako.vim--Torborg'
Bundle 'gg/python.vim'
" Plugin
Bundle 'The-NERD-tree'
Bundle 'AutoClose--Alves'
Bundle 'auto_mkdir'
Bundle 'cecutil'
" Bundle 'fcitx.vim'
Bundle 'FencView.vim'
"Bundle 'FuzzyFinder'
Bundle 'jsbeautify'
Bundle 'L9'
Bundle 'Mark'
Bundle 'matrix.vim'
Bundle 'mru.vim'
Bundle 'The-NERD-Commenter'
"Bundle 'project.vim'
Bundle 'restart.vim'
Bundle 'taglist.vim'
"Bundle 'templates.vim'
"Bundle 'vimim.vim'
Bundle 'ZenCoding.vim'
Bundle 'css_color.vim'
Bundle 'hallettj/jslint.vim'
Bundle 'kien/ctrlp.vim'
" Bundle 'Lokaltog/vim-powerline'
Bundle 'bling/vim-airline'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" config airline
set laststatus=2
" 設定256色
set t_Co=256
"顯示行号
set nu
"設定tab建代表4個空格
set ts=4
"讓其支援GBK格式
set fileencodings=utf-8,cp936,gb18030,gb2312,cp936
"設定打開檔案使用的編碼格式
set fileencoding=utf-8 "儲存檔案用utf-8格式
set encoding=utf-8 "vim内部使用的編碼格式
set termencoding=utf-8 "在終端模式的vim的編碼格式
" 設定配色
" colorscheme desert
" 自動文法高亮
syntax on
" 使用>>和<<指令移動時,寬度為4
set shiftwidth=4
" 使用倒退鍵的時候,一次删掉4個空格
set softtabstop=4
" 搜尋時忽略大小寫,除非搜尋字元中包含大寫字母
set ignorecase smartcase
" 禁止搜尋到檔案兩端時,重新搜尋
set nowrapscan
" 開啟增量搜尋
set incsearch
" 搜尋時高亮顯示找到的字元串
set hlsearch
" 插入新行時,使用智能縮進
set smartindent
" 開啟折疊
set foldenable
" 開啟文法折疊
set foldmethod=syntax
" 設定折疊區域寬度
set foldcolumn=0
" 設定折疊層數
setlocal foldlevel=1