{"id":4756,"date":"2016-10-13T21:00:31","date_gmt":"2016-10-13T13:00:31","guid":{"rendered":"https:\/\/lttt.blog.ustc.edu.cn\/?p=4756"},"modified":"2016-10-13T21:00:31","modified_gmt":"2016-10-13T13:00:31","slug":"liyongcygwinbianyivim","status":"publish","type":"post","link":"https:\/\/lttt.vanabel.cn\/?p=4756","title":{"rendered":"\u5229\u7528Cygwin\u7f16\u8bd1vim"},"content":{"rendered":"<p>\u76ee\u6807\u662f\u5e0c\u671b\u7f16\u8bd1\u7684vim\u5e26\u6709 <code>+clientserver +ruby +python +python3 +lua +perl<\/code><br \/>\n\u4e24\u4e2a\u8981\u70b9, \u4e00\u662f<code>+clientserver<\/code>\u9700\u8981<code>libncurses-devel<\/code>, \u5176\u5b83\u8bed\u8a00\u652f\u6301\u9700\u8981\u8be5\u8bed\u8a00\u5bf9\u5e94\u7684\u5f00\u53d1\u5305(\u8fd9\u91ccdevel\u5bf9\u5e94\u7684\u662f\u5f00\u53d1\u5305).<br \/>\n\u6211\u5b9e\u9645\u4e0a\u5b89\u88c5\u4e86\u5982\u4e0b\u5305:<br \/>\n\u9996\u5148\u662f\u7f16\u8bd1\u73af\u5883<\/p>\n<pre class=\"\"><code>apt-cyg install autobuild autoconf automake binutils cmake gcc-core gcc-g77 gcc-g++ gcc4-core gcc4 gcc4-g++ make makedepend pkg-config gcc-mingw-core gcc-mingw-g++ gdb<\/code><\/pre>\n<p>\u5176\u6b21\u662f+clientserver\u9700\u8981\u7684\u56fe\u5f62\u73af\u5883<\/p>\n<pre><code>apt-cyg install libncurses-devel x11 libX11-devel libXt-devel<\/code><\/pre>\n<p>\u6700\u540e\u662f\u5404\u4e2a\u8bed\u8a00\u5305\u9700\u8981\u7684\u5f00\u53d1\u73af\u5883<\/p>\n<pre><code>apt-cyg install python-devel libboost_python3-devel lua-devel luajit-devel ruby-devel<\/code><\/pre>\n<p><!--more--><br \/>\n\u5f00\u59cb\u7f16\u8bd1\u65f6, \u4e0b\u8f7dvim\u6e90\u7801: <a href=\"https:\/\/github.com\/vim\/vim\" target=\"_blank\">https:\/\/github.com\/vim\/vim<\/a><br \/>\n\u5207\u6362\u5230<code>vim\/src<\/code>\u76ee\u5f55<br \/>\n\u8bbe\u7f6e\u7f16\u8bd1\u7684\u914d\u7f6e\u4e3a:<\/p>\n<pre><code>.\/configure --with-x --with-features=huge --enable-luainterp --with-luajit --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-perlinterp --enable-multibyte --enable-gui=auto<\/code><\/pre>\n<p>\u8fd9\u91cc\u5b89\u88c5\u4e86x11, \u8fd0\u884c\u65f6\u53ea\u9700\u8f93\u5165<code>startxwin&amp;<\/code>, \u7136\u540e\u5c31\u53ef\u4ee5\u8fd0\u884c\u684c\u9762\u7a0b\u5e8f\u4e86, \u4f8b\u5982xpdf\u4e4b\u7c7b\u7684.<br \/>\n\u6700\u540e\u7f16\u8bd1\u5e76\u5b89\u88c5<code>make; make install<\/code>\u5373\u53ef.<\/p>\n<p>1. \u4e8b\u5b9e\u4e0a, normal\u9009\u9879\u5c31\u5305\u542b\u4e86+clientserver, Huge\u4f1a\u7136vim\u52a0\u8f7d\u53d8\u6162. \u53c2\u8003<a href=\"http:\/\/stackoverflow.com\/questions\/10231223\/compile-vim-7-3-with-clientserver-feature-on-mac-os-x\">\u8fd9\u91cc<\/a><br \/>\n2. \u53ef\u4ee5\u4f7f\u7528<code>--enable-python3interp=dynamic --enable-pythoninterp=dynamic<\/code>\u652f\u6301\u52a8\u6001python, \u53c2\u8003<a href=\"http:\/\/askubuntu.com\/questions\/585237\/whats-the-easiest-way-to-get-vim-with-python-3-support\">\u8fd9\u91cc<\/a><br \/>\n3. \u53ef\u4ee5\u4f7f\u7528<code>make -j 4 -l 3.5<\/code>\u5b9e\u73b0\u5e76\u884c\u7f16\u8bd1\u52a0\u5feb\u901f\u5ea6, \u540e\u4e00\u4e2a\u9009\u9879\u662f\u8d1f\u8f7d\u5747\u8861. \u53c2\u8003<a href=\"https:\/\/www.gnu.org\/software\/make\/manual\/html_node\/Parallel.html\">\u8fd9\u91cc<\/a><\/p>\n<p>\u6700\u540e, \u4e0a\u8ff0\u7f16\u8bd1\u540e\u8fd8\u662f\u4e0d\u80fd\u652f\u6301ruby\u548cperl, \u4ee5\u540e\u5728\u627e\u627e\u539f\u56e0.<\/p>\n<p>\u53c2\u8003\u94fe\u63a5: <a href=\"https:\/\/github.com\/yangyangwithgnu\/use_vim_as_ide#0.2\" target=\"_blank\">https:\/\/github.com\/yangyangwithgnu\/use_vim_as_ide#0.2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6807\u662f\u5e0c\u671b\u7f16\u8bd1\u7684vim\u5e26\u6709 +clientserver +ruby +pytho &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/lttt.vanabel.cn\/?p=4756\"> <span class=\"screen-reader-text\">\u5229\u7528Cygwin\u7f16\u8bd1vim<\/span> \u9605\u8bfb\u66f4\u591a &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-4756","post","type-post","status-publish","format-standard","hentry","category-net"],"_links":{"self":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/4756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4756"}],"version-history":[{"count":0,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/4756\/revisions"}],"wp:attachment":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}