我自己用的Vim的配置,用起来比较好使,里面的配置代码也很好懂,不多说啦,看配置文件。
"Use vundle to manage plugin
filetype off
set nocompatible
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
"Let vundle manage vundle.required
Bundle 'gmarik/vundle'
"My bundles here:
Bundle 'altercation/vim-colors-solarized'
"Brief help of vundle
":BundleList
":BundleInstall
":BundleSearch
":BundleClean
":help vundle
"End brief help
"Show line number command status line and so on
set history=1000
set ruler
set number
set showcmd
set showmode
set laststatus=2
set cmdheight=2
set scrolloff=3
"Fill space between windows
set fillchars=stl:\ ,stlnc:\ ,vert:\
"Turn off annoying error sound
set noerrorbells
set novisualbell
set t_vb=
"Turn off splash screen
set shortmess=atI
"suntax and theme
syntax on
colorscheme desert
set background=dark
"set cursorcolumn
set cursorline
"configure backspace to be able to across two lines
set backspace=2
set whichwrap+=<,>,h,l
"Tab and indent
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set autoindent
set cindent
"Files,backups and encoding
set nobackup
set noswapfile
set autoread
set autowrite
set autochdir
set fileencodings=utf-8
set fileformats=unix,dos,mac
filetype plugin on
filetype indent on
"Text search and replace
set showmatch
set matchtime=2
set hlsearch
set incsearch
set ignorecase
set smartcase
set magic
set lazyredraw
set nowrapscan
set iskeyword+=_,$,@,%,#,-,.