Whether it's Linux or Cygwin, Vim will need to be configured when the system has just been installed and vim is used. In the case of not configured, like the arrow keys, enter, BACKSPACE will not be the normal response. Because Vim uses the VI operating mode by default.
Not much to say, on the code.
Vim ~/.VIMRC into the vim edit state. Press I to enter the plug-in mode, enter or paste the following configuration content (specific property item meaning self-understanding):
Set Fenc=utf-8
Set fencs=utf-8,ucs-bom,euc-jp,gb18030,gbk,gb2312,cp936
Set NOCP
Set number
Set AI
Set Si
Set tabstop=4
Set sw=4
Set ruler
Set Incsearch
Set Showmatch
Set matchtime=5
Set ignorecase
Set Backspace=indent,eol,start
Set HELPLANG=CN
Set Encoding=utf-8
Syntax enable
Syntax on
ColorScheme Desert
Press ESC to exit the Vim plugin mode and press: wq! to save the current changes.
Once again into Vim, you can find that Vim is already available in the normal editor.
First use of VIM