Vim configuration in Cygwin (Linux)

Source: Internet
Author: User

Personally think that in Linux vim is much stronger than VI, but a lot of people after downloading, feel nothing special, and VI is the same
Not easy to operate, the main reason is that you have not yet configured vim, the process is as follows:

Setting up a profile at home
Switch Home #cd ~
Touch a file named. vimrc
#vi. VIMRC

The simple configuration content is as follows:

Set Nocompatible #不使用vi默认键盘布局
Set Number #显示行号
Set Autoindent #自动对齐
Set Smartindent #智能对齐
Set Showmatch #括号匹配模式
Set Ruler #显示状态行
Set Incsearch #查询
Set tabstop=4 #tab键为4个空格
Set shiftwidth=4 #换行时行间交错使用4个空格
Set softtabstop=4 #设置 (soft) tab width is 4
Set Cindent #C语言格式对齐
Set Nobackup #不要备份文件
Set Clipboard+=unnamed #与windows共享剪贴板
Syntax on #语法高亮
Set Backspace=indent,eol,start #backspace删除

Vim configuration in Cygwin (Linux)

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.