我的vim配置

來源:互聯網
上載者:User

標籤: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配置

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.