.vimrc

来源:互联网 发布:猫鼠游戏结局知乎 编辑:程序博客网 时间:2024/06/03 17:09

参照这个设置不错:http://www.cnblogs.com/zhangsf/archive/2013/06/13/3134409.html

set nocompatible



set number "显示行号
set autoindent" 设置自动对齐(缩进):即每行的缩进值与上一行相等;使用 noautoindent 取消设置
"set smartindent        " 智能对齐方式
set showmatch        " 设置匹配模式,显示匹配的括号
set ruler            " 标尺,用于显示光标位置的行号和列号,逗号分隔。每个窗口都有自己的标尺。如果窗口有状态行,标尺在那里显示。否则,它显示在屏幕的最后一行上。
set incsearch        " 输入字符串就显示匹配点
set tabstop=4        " 设置制表符(tab键)的宽度
set shiftwidth=4    " (自动) 缩进使用的4个空格
set softtabstop=4     " 设置软制表符的宽度 
set cindent            " 使用 C/C++ 语言的自动缩进方式
set nobackup


syntax enable   "语法高亮
syntax on
color slate   "背景颜色




" install bundle


set nocompatible               " be iMproved
filetype off                   " required!


set rtp+=~/.vim/bundle/vundle/
call vundle#rc()


" let Vundle manage Vundle
" required! 
Bundle 'gmarik/vundle'


" My Bundles here:


filetype plugin indent on     " required!
"
" Brief help
" :BundleList          - list configured bundles
" :BundleInstall(!)    - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!)      - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..


" install bundle


"Bundle 'scrooloose/nerdtree'
0 0
原创粉丝点击