码迷,mamicode.com
首页 > 系统相关 > 详细

我的vim配置

时间:2014-10-14 00:54:27      阅读:382      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   os   使用   ar   for   sp   

"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>

 

我的vim配置

标签:style   blog   http   color   os   使用   ar   for   sp   

原文地址:http://www.cnblogs.com/woaishizhan/p/4023412.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!