首页 > 代码库 > 我的vim配置

我的vim配置

"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/nerdtreePlugin Chiel92/vim-autoformatPlugin 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配置