我的vim配置

"vundle
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/}

Plugin scrooloose/nerdtree

Plugin Chiel92/vim-autoformat

Plugin Valloric/YouCompleteMe

" 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

"normal settings
set nobackup
set noswapfile
set hlsearch
set incsearch
set number "显示行号
set autoindent  "设置自动缩进:即每行的缩进值与上一行相等;使用 noautoindent 取消设置
set cindent  "设置使用 C/C++ 语言的自动缩进方式
set smartindent
set shiftwidth=4  "设置缩进的空格数为4
set tabstop=4 "设置(软)制表符宽度为4:
set softtabstop=4  

"nedtree
map <F4> :NERDTreeMirror<CR>
map <F4> :NERDTreeToggle<CR>

"vim-autoformat
noremap <F3> :Autoformat<CR><CR>

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。