zoukankan      html  css  js  c++  java
  • windows 下vim的个人配置

    "=======================Basic___Configuration_Start====================
    "修改默认目录"
    ": cd D:dreamprogramming
    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>
  • 相关阅读:
    那些年读过的书《Java并发编程实战》和《Java并发编程的艺术》三、任务执行框架—Executor框架小结
    那些年读过的书《Java并发编程实战》二、如何设计线程安全类
    那些年读过的书《Java并发编程实战》一、构建线程安全类和并发应用程序的基础
    重读《深入理解Java虚拟机》七、探究Java内存模型
    重读《深入理解Java虚拟机》六、Java泛型 VS C#泛型 (伪泛型 VS 真泛型)
    重读《深入理解Java虚拟机》五、虚拟机如何执行字节码?程序方法如何被执行?虚拟机执行引擎的工作机制
    重读《深入理解Java虚拟机》四、虚拟机如何加载Class文件
    input 文本框禁止输入表情
    win7右下角无线网图标显示未连接,但是实际上已连接上,也能上网
    history.back(-1)和history.go(-1)的区别
  • 原文地址:https://www.cnblogs.com/kinthon/p/4489436.html
Copyright © 2011-2022 走看看