Solve the backspace of vim in Cygwin not normal use (GO)

Source: Internet
Author: User

Reproduced in: http://blog.chinaunix.net/uid-20614631-id-1914849.html Pro test available

First download the Cygwin, want to program under Linux must install VIM,GCC and GDB, now mainly to solve the vim backspace not normal

Use the problem. Cygwin installed after the open display should be such a format [email protected] ~
Now is under the/home/username path, for example my user name is grass, computer name is WJK, now do the following:
[email protected] $ cd/home/grass
[email protected] $ vim. VIMRC then enter the following settings:
Start

Set nocompatible
Set Backspace=indent,eol,start
Set ruler
Set ShowCmd
Set Wildmenu
Set FO=CQRT
Set laststatus=2
Set textwidth=78
Set Ww=<,>,h,l
Set Autoindent
"Set no error bells
Set Noeb Visualbell
Set Expandtab
Set tabstop=4
Set shiftwidth=4
Set Expandtab
Let Mapleader = ","
SYN on
FileType on
FileType plugin on
FileType indent on

Over
Last: Wq


Now the VIM operation is basically no problem, and in writing the C program will also automatically identify data types, constants, keywords and so on. But there are many settings that should be available online.

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.