zoukankan      html  css  js  c++  java
  • vimrc for mac

    " Configuration file for vim
    set modelines=0		" CVE-2007-2438
    
    " Normally we use vim-extensions. If you want true vi-compatibility
    " remove change the following statements
    set nocompatible	" Use Vim defaults instead of 100% vi compatibility
    set backspace=2		" more powerful backspacing
    
    syntax on
    " 语法高亮
    
    autocmd InsertLeave * se nocul
    autocmd InsertEnter * se cul
    " 用浅色高亮当前行
    
    set smartindent
    " 智能对齐
    
    set autoindent
    " 自动对齐
    
    set confirm
    " 在处理未保存或只读文件的时候,弹出确认
    
    set tabstop=4
    " Tab键的宽度
    
    set softtabstop=4
    set shiftwidth=4
    "  统一缩进为4
    
    set noexpandtab
    " 不要用空格代替制表符
    
    set number
    " 显示行号
    
    set history=50
    " 历史纪录数
    
    set hlsearch
    set incsearch
    " 搜索逐字符高亮
    
    set gdefault
    " 行内替换
    
    set encoding=utf-8
    set fileencodings=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936,utf-16,big5,euc-jp,latin1
    " 编码设置
    
    colorscheme torte
    " 设置颜色主题
    
    "set guifont=Menlo:h16:cANSI
    " 设置字体
    
    set langmenu=zn_CN.UTF-8
    set helplang=cn
    " 语言设置
    
    set cmdheight=2
    " 命令行(在状态行)的高度,默认为1,这里是2
    
    set ruler
    " 在编辑过程中,在右下角显示光标位置的状态行
    
    set laststatus=2
    " 总是显示状态行
    
    set showcmd
    " 在状态行显示目前所执行的命令,未完成的指令片段亦会显示出来
    
    set scrolloff=3
    " 光标移动到buffer的顶部和底部时保持3行距离
    
    set showmatch
    " 高亮显示对应的括号
    
    set matchtime=5
    " 对应括号高亮的时间(单位是十分之一秒)
    
    set autowrite
    " 在切换buffer时自动保存当前文件
    
    set wildmenu
    " 增强模式中的命令行自动完成操作
    
    set linespace=2
    
    " Don't write backup file if vim is being called by "crontab -e"
    au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
    " Don't write backup file if vim is being called by "chpass"
    au BufWrite /private/etc/pw.* set nowritebackup nobackup
    "设置菜单和提示成英语
    "set the menu & the message to English
    "set langmenu=en_US
    "let $LANG = 'en_US'
    "source $VIMRUNTIME/delmenu.vim
    "source $VIMRUNTIME/menu.vim

      

  • 相关阅读:
    关于selenium中的sendKeys()隔几秒发送一个字符
    C#使用.net.mail配置163邮箱报错:不允许使用邮箱名称。 服务器响应为:authentication is required,smtp9,DcCowABHK4UYE11W2k6fAQ--.52196S2 1448940312
    Git一个本地仓库同时推送到多个远程仓库
    MySQL中的字符数据存储
    在IIS中启用net.tcp传输协议
    MS CRM 2016 二次开发知识点
    微软 CRM 2016 自定义视图顶部按钮
    CodeSmith7.0.2连接Oracle10.2
    使用Entity framework框架执行存储过程
    SQL建表公共字段脚本
  • 原文地址:https://www.cnblogs.com/derrck/p/4709166.html
Copyright © 2011-2022 走看看