Cygwin and VIM configuration

Source: Internet
Author: User
Tags autoload

    1. Reference

Http://www.jeepshoe.org/810958442.htm

    1. 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
    1. cygcheck命令的使用
    • Howto get version info?

      cygcheck -c cygwin

    • Viewing system Information, packages

      cygcheck -h #帮助

      cygcheck -s #sysinfo

      cygcheck -l #已安装包列表

      cygcheck -c #列出并校验已安装的包

      cygcheck -p vim #从cygwin.com源查询包

    1. 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 && cpvim74/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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.