標籤:style blog http color os 使用 ar for sp
"vundleset nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin(‘~/some/path/here‘)" let Vundle manage Vundle, requiredPlugin ‘gmarik/Vundle.vim‘" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repoPlugin ‘tpope/vim-fugitive‘" plugin from http://vim-scripts.org/vim/scripts.htmlPlugin ‘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/‘}Plugin ‘scrooloose/nerdtree‘Plugin ‘Chiel92/vim-autoformat‘Plugin ‘Valloric/YouCompleteMe‘" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype 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"normal settingsset nobackupset noswapfileset hlsearchset incsearchset number "顯示行號set autoindent "設定自動縮排:即每行的縮排值與上一行相等;使用 noautoindent 取消設定set cindent "設定使用 C/C++ 語言的自動縮排方式set smartindentset shiftwidth=4 "設定縮排的空格數為4set tabstop=4 "設定(軟)定位字元寬度為4:set softtabstop=4 "nedtreemap <F4> :NERDTreeMirror<CR>map <F4> :NERDTreeToggle<CR>"vim-autoformatnoremap <F3> :Autoformat<CR><CR>
我的vim配置