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.