"=======================Basic___Configuration_Start====================
"修改默认目录"
": cd D:\dream\programming
set ts=4 "tab键的长度
syntax on "语法高亮
set nocompatible "去掉讨厌的有关vi一致性模式,避免以前版本的bug和局限
set backspace=indent,eol,start "解决backspace不可用的问题
"set cul "Highlight current line
let filetype_i = "asm"
set visualbell "use visual bell instead of beeping
set autoread "watch for file changes
set nu
"set smarttab "set tab and backspace are smart;
set incsearch "show immediately where the so far typed search pattern matches
set tabstop=4
"c language cindent set
set shiftwidth=4 "autocindent 7 blackpase
set sts=4 "softtabstop = 4
set expandtab "input tab and vim will use backspace to full
set cindent "the c language
set autoindent "copy the previous line's indent to the current line
set autochdir "change the word dirtory according the file
"maps ":" to ";", and "," to ";" only on the normal mode and one time
"nore ; :
"nore , ;
"=======================Basic___Configuration_End=================
"对于字体的设置命令为set gfn=字体名称:h字号;对于背景颜色的设置命令为colorscheme 颜色方案名称"
set gfn=Courier_New:h11
colorscheme torte
"设置文件的代码形式
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese,cp936
"vim的菜单乱码解决:
"同样在 _vimrc文件里以上的中文设置后加上下列命令,
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"vim提示信息乱码的解决
language messages zh_CN.utf-8
"===========Vundle_Start================
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=$VIM/vimfiles/bundle/Vundle.vim
call vundle#begin('$VIM/vimfiles/bundle/') "下载的目录
" 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 'scrooloose/nerdtree'
Plugin 'tpope/vim-fireplace'
Plugin 'SuperTab'
Plugin 'vim-scripts/ruby-macros.vim'
Plugin 'vim-ruby/vim-ruby'
Plugin 'sql.vim'
Plugin 'a.vim'
"Plugin
" 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/'}
" Avoid a name conflict with L9
" Plugin 'user/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"===================Vundle_End================
"===================Template_File_Start=============
if has("vms")
set nobackup " do not keep a backup file, use versions instead
" else
" set backup " keep a backup file
endif
" ==================Template_File_End=============
"=====================Map====================
map <F10> :NERDTreeToggle<CR>