- Reference
Http://www.jeepshoe.org/810958442.htm
- Cygwin installation Package Manager
Before installing Apt-cyg via terminal, select the following packages to install
Wget
Tar
Gawk
Bzip2
Apt-cyg is a simple script. To install:
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyginstall apt-cyg /bin
Example Use of Apt-cyg:
apt-cyg install nano
cygcheck命令的使用
- Cygwin garbled problem solving
1. Add the following code to the end of the. bash_profile file in the user directory (CD ~)
VI ~/.bash_profile
Export LC_ALL=ZH_CN. GBK
Export LC_CTYPE=ZH_CN. GBK
Export LANG=ZH_CN. GBK
Export [Email PROTECTED]=CHINPUT3
Stty Cs8-istrip
Stty PASS8
Export Lesscharset=latin1
2. The same as the ~ directory, remove the. inputrc file in the code comments (the previous # #)
VI ~/.INPUTRC
Set Meta-flag on
Set Convert-meta off
Set Input-meta on
Set Output-meta on
3. Add code to the. bashrc file in the ~ directory
VI ~/.BASHRC
Alias ls= ' ls--color--show-control-chars '
4. Restart the Cygwin.
5. If using Xshell need to set the terminal's default character encoding to "default", otherwise garbled
Vim Configuration
Reference: http://littlewhite.us/archives/212 (VIM C + + development Environment Plugin installation detailed)
Apt-cyg Install git
Apt-cyg Install Ctags
cd
/usr/share/vim
&&
cp
vim74
/vimrc_example
.vim vimrc
CP/USR/SHARE/VIM/VIMRC ~/.VIMRC
Apt-cyg Install Unzip
Mkdir-p ~/.vim/autoload ~/.vim/bundle &&
Curl-lsso ~/.vim/autoload/pathogen.vim Https://tpo.pe/pathogen.vim
git clone git://github.com/jiangmiao/auto-pairs.git ~/.vim/bundle/auto-pairs
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
~/.vim/bundle/nerdtree/doc
Mkdir-p ~/.vim/bundle/minibufexplorer/plugin && wget "http://www.vim.org/scripts/download_script.php?src_ id=3640 "-O ~/.vim/bundle/minibufexplorer/plugin/minibufexpl.vim
CD ~/.vim/bundle && wget "http://www.vim.org/scripts/download_script.php?src_id=19574"-O taglist.zip & & Unzip taglist.zip-d TagList
CD ~/.vim/bundle && wget "http://www.vim.org/scripts/download_script.php?src_id=7722"-O omnicppcomplete.zip && Unzip omnicppcomplete.zip-d Omnicppcomplete
: Helptags ~/.vim/bundle/omnicppcomplete/doc
Mkdir-p ~/.vim/tags && cd ~/.vim/tags && wget "http://www.vim.org/scripts/download_script.php?src_id= 9178 "-O-| Tar jxvf-
CD ~/.VIM/TAGS/CPP_SRC
Ctags-r--sort=yes--c++-kinds=+p--fields=+ias--extra=+q--language-force=c++
CD ~/.vim/bundle && git clone https://github.com/ervandew/supertab.git
CD ~/.vim/bundle
git clone https://github.com/drmingdrmer/xptemplate.git
Cygwin and VIM configuration