Chinaunix首页 | 论坛 | 博客
  • 博客访问: 427787
  • 博文数量: 58
  • 博客积分: 587
  • 博客等级: 中士
  • 技术积分: 710
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-25 11:37
文章分类

全部博文(58)

文章存档

2014年(4)

2013年(32)

2012年(22)

分类: LINUX

2012-10-30 12:22:32

if has("syntax")
  syntax on
endif

 

" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark

" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
"  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"endif

" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
"if has("autocmd")
"  filetype plugin indent on
"endif

" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
set ai
set nu
set number
set showmatch
set autoindent
set cindent
set noignorecase
set ruler
set scrolloff=5
set tabstop=3
set shiftwidth=3
set wrap
set showcmd        " Show (partial) command in status line.
set showmatch        " Show matching brackets.
set ignorecase        " Do case insensitive matching
set smartcase        " Do smart case matching
"set incsearch        " Incremental search
"set autowrite        " Automatically save before commands like :next and :make
"set hidden             " Hide buffers when they are abandoned
set mouse=a        " Enable mouse usage (all modes)
set smartindent
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif
syntax enable
syntax on


阅读(720) | 评论(0) | 转发(0) |
0

上一篇:挂载VBoxGuestAdditions.iso

下一篇:vimrc设置

给主人留下些什么吧!~~