The solution to the bad use of the arrow keys and Backspace keys in the vi editor in Cygwin

  1. 1. Create a .virc file in the current user directory
  2. 2. Modify the .virc file (create it if it doesn't exist)
    vi .virc
    1. Add the following
      set nocp
      set backspace=start,indent,eol
  3. save and exit
    : wq

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325524873&siteId=291194637