標籤:
"=======================Basic___Configuration_Start===================="修改預設目錄"": cd D:\dream\programmingset ts=4 "tab鍵的長度syntax on "文法高亮set nocompatible "去掉討厭的有關vi一致性模式,避免以前版本的bug和局限 set backspace=indent,eol,start "解決backspace停用問題"set cul "Highlight current linelet filetype_i = "asm"set visualbell "use visual bell instead of beepingset autoread "watch for file changesset nu"set smarttab "set tab and backspace are smart;set incsearch "show immediately where the so far typed search pattern matchesset tabstop=4"c language cindent setset shiftwidth=4 "autocindent 7 blackpaseset sts=4 "softtabstop = 4set expandtab "input tab and vim will use backspace to fullset cindent "the c languageset autoindent "copy the previous line‘s indent to the current lineset 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:h11colorscheme torte"設定檔案的代碼形式set encoding=utf-8set termencoding=utf-8set fileencoding=utf-8set 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, requiredfiletype off " required " set the runtime path to include Vundle and initializeset rtp+=$VIM/vimfiles/bundle/Vundle.vimcall vundle#begin(‘$VIM/vimfiles/bundle/‘) "下載的目錄" alternatively, pass a path where Vundle should install plugins"call vundle#begin(‘~/some/path/here‘) " let Vundle manage Vundle, requiredPlugin ‘gmarik/Vundle.vim‘ " The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repoPlugin ‘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 linecall vundle#end() " requiredfiletype 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 fileendif " ==================Template_File_End============="=====================Map====================map <F10> :NERDTreeToggle<CR>
windows 下vim的個人配置