Cygwin-vim Configuration

Source: Internet
Author: User

Installing CygwinSlightly
    • Install Vim

    • Configure VIM

Configure vim under Programming and code reading environment

    • Common configuration


set fenc=utf-8 “设定默认解码
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
set nocp “或者 set nocompatible 用于关闭VI的兼容模式
set number “显示行号
set ai “或者 set autoindent vim使用自动对齐,也就是把当前行的对齐格式应用到下一行
set si “或者 set smartindent 依据上面的对齐格式,智能的选择对齐方式
set tabstop=4 “设置tab键为4个空格
set sw=4 “或者 set shiftwidth 设置当行之间交错时使用4个空格
set ruler “设置在编辑过程中,于右下角显示光标位置的状态行
set incsearch “设置增量搜索,这样的查询比较smart
set showmatch “高亮显示匹配的括号
set matchtime=5 “匹配括号高亮时间(单位为 1/10 s) set ignorecase “在搜索的时候忽略大小写
syntax on “高亮语法

    • No VIMRC configuration file found by default after installation
      Vim after installation default path in/usr/share/vim/vim74/

      $ cp /usr/share/vim/vim74/vimrc_example.vim ~/.vimrc

Cygwin-vim Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.