c/c++ 程式碼格式化(linux風格)
阿新 • • 發佈:2019-02-10
"==============.vimrc指令碼================="NeoBundle Scripts-----------------------------if &compatible set nocompatible " Be iMprovedendif" Required:set runtimepath+=/home/zf/.vim/bundle/neobundle.vim/" Required:call neobundle#begin(expand('/home/zf/.vim/bundle'))" Let NeoBundle manage NeoBundle" Required:NeoBundleFetch 'Shougo/neobundle.vim'NeoBundle 'vim-clang-format'NeoBundle 'vim-operator-user'NeoBundle 'vimproc.vim'call neobundle#end()" Required:filetype plugin indent on"End of NeoBundle Scripts-----------------------------" If there are uninstalled bundles found on startup," this will conveniently prompt you to install them.NeoBundleCheck"clang-format optionslet g:clang_format#style_options = { \ "BasedOnStyle" : "llvm", \ "IndentWidth" : 8, \ "UseTab" : "Always", \ "BreakBeforeBraces" : "Linux", \ "AllowShortIfStatementsOnASingleLine" : "false", \ "IndentCaseLabels" : "false" }