Cygwin

Created: 05 Jun 2016

Author:  Chen Xie

Provide Linux Interface(POSIX) for Windows. For who is used to using Linux.

e.g. all command, vim, and so on.

Installation

1 Download setup.exe from official website

2 Install

Notice: when choose package, select “Default”. Install all will cost too much time.

Software Management

  1. Use setup.exe also.
  2. Choose packages needed.

Vim

Vundle

work fine

乱码问题

索引

# bashrc
export LESSCHARSET=latin1
alias less='/bin/less -r'
alias ls='/bin/ls -F --color=tty --show-control-chars'
export LC_ALL=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export LANG=zh_CN.GBK
export OUTPUT_CHARSET="GBK"

#vimrc
set encoding=utf-8
set fileencoding=utf-8

" support Windows Chinese "
set termencoding=gbk
set langmenu=zh_CN.UTF-8
language messages zh_CN.UTF-8
# windows cygwin bash