windows 下vim的個人配置

來源:互聯網
上載者:User

標籤:

"=======================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的個人配置

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.