{"id":30831,"date":"2022-12-13T21:06:44","date_gmt":"2022-12-13T13:06:44","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=30831"},"modified":"2022-12-13T21:07:40","modified_gmt":"2022-12-13T13:07:40","slug":"vim-8-0","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/vim-8-0.html","title":{"rendered":"Vim\u91cd\u78c5\u53d1\u5e038.0\u7248\u672c"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5341\u5e74\u4ee5\u540e\uff0cVim \u7ec8\u4e8e\u53d1\u5e03\u4e86\u4e00\u4e2a\u65b0\u7684\u5927\u7248\u672c 8.0\uff0c\u7ed3\u675f\u4e86\u4ece 2006 \u5e74 5 \u6708 7 \u65e5\u5f00\u59cb\u7684 7.0 \u4e16\u4ee3\u3002\u867d\u7136\u8fd9\u5341\u5e74\u95f4\uff0cVim \u4e5f\u4e00\u76f4\u5728\u4e0d\u65ad\u66f4\u65b0\uff0c\u4ece 7.0 \u5230\u4e09\u5e74\u524d\u7684 7.4\uff0c\u6bcf\u9694\u4e00\u4e24\u5e74\u6216\u4e24\u4e09\u5e74\u5c31\u4f1a\u6709\u4e2a\u5c0f\u7248\u672c\u66f4\u65b0\uff0c\u4f46\u662f\u8fd9\u6b21\u8de8\u8d8a\u5927\u7248\u672c\u66f4\u65b0\uff0c\u5e26\u6765\u4e86\u4e0d\u5c11\u65b0\u7684\u7279\u6027\uff0c\u636e\u8bf4\u6709\u4e00\u4e9b\u662f\u4ece\u5176\u5b83\u7684 Vi \u6d41\u6d3e\u5438\u6536\u6765\u7684\u7279\u6027\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"[\u8be6\u8baf]\u5341\u5e74\u751f\u805a<\/p>\n

\u4ec0\u4e48\u662f Vim\uff1f<\/strong><\/div>\n

Vim \u662f\u7ecf\u5178\u7684 UNIX \u7f16\u8f91\u5668 Vi \u7684\u6df1\u5ea6\u6539\u826f\u7248\u672c\u3002\u5b83\u589e\u52a0\u4e86\u8bb8\u591a\u529f\u80fd\uff0c\u5305\u62ec\uff1a\u591a\u7ea7\u64a4\u9500\u3001\u683c\u5f0f\u9ad8\u4eae\u3001\u547d\u4ee4\u884c\u5386\u53f2\u3001\u5728\u7ebf\u5e2e\u52a9\u3001\u62fc\u5199\u68c0\u67e5\u3001\u6587\u4ef6\u540d\u8865\u5b8c\u3001\u5757\u64cd\u4f5c\u3001\u811a\u672c\u652f\u6301\uff0c\u7b49\u7b49\u3002\u9664\u4e86\u5b57\u7b26\u754c\u9762\u7248\u672c\u4e4b\u5916\uff0c\u5b83\u4e5f\u6709\u56fe\u5f62\u754c\u9762\u7248\u672c\uff08\u6bd4\u5982 gVim\uff09\u3002\u867d\u7136 Vi \u8fd8\u5728\u7ee7\u7eed\u7ef4\u62a4\u5f53\u4e2d\uff0c\u4f46\u662f\u5927\u90e8\u5206\u4eba\u90fd\u53ea\u5728\u4f7f\u7528 Vim \u4e86\uff0c\u4f60\u6240\u89c1\u5230\u548c\u542c\u5230\u7684\u5927\u591a\u662f\u6307 Vim\u2014\u2014\u867d\u7136\u4f60\u7684\u547d\u4ee4\u540d\u53ef\u80fd\u662f Vi\u3002<\/p>\n

\u8fd9\u4e2a\u7f16\u8f91\u5668\u5e38\u7528\u4e8e\u7a0b\u5e8f\u5458\u3001\u7cfb\u7edf\u7ba1\u7406\u5458\u3001\u9ed1\u5ba2\u4eec\u8fdb\u884c\u7f16\u7a0b\u548c\u6587\u672c\u7f16\u8f91\u3002\u4e0d\u50cf\u67d0\u4e9b\u7f16\u8f91\u5668\uff0c\u5b83\u6240\u6709\u7684\u547d\u4ee4\u90fd\u91c7\u7528\u666e\u901a\u7684\u952e\u76d8\u5b57\u7b26\uff0c\u56e0\u6b64\u5728\u4f60\u7684\u5982\u98de\u822c\u7684\u5341\u6307\u4e4b\u4e0b\uff0c\u5b83\u7684\u8f93\u5165\u548c\u64cd\u4f5c\u901f\u5ea6\u975e\u5e38\u5feb\u3002\u5f53\u7136\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5c06\u529f\u80fd\u952e\u6620\u5c04\u5230\u67d0\u4e9b\u547d\u4ee4\u4e0a\uff0c\u751a\u81f3\u8fd8\u53ef\u4ee5\u652f\u6301\u9f20\u6807\u3002<\/p>\n

\u9664\u4e86 Linux \u4e4b\u5916\uff0cVim \u8fd8\u53ef\u4ee5\u8fd0\u884c\u5728 MS-Windows \uff08NT\u30012000\u3001XP\u3001Vista\u30017\u30018\u300110\uff09\u3001\u82f9\u679c\u3001VMS \u548c\u51e0\u4e4e\u6240\u6709\u7684 UNIX \u5206\u652f\u4e0a\u3002 Vim \u7684\u65e7\u7248\u672c\u8fd8\u53ef\u4ee5\u8fd0\u884c\u5728 MS-DOS\u3001MS-Windows 95\/98\/Me\u3001Amiga DOS\u3001Atari MiNT\u3001BeOS\u3001RISC OS \u548c OS\/2 \u4e0a\uff0c\u4e0d\u8fc7\u65b0\u7248\u672c\u4e0d\u518d\u652f\u6301\u4e86\u3002<\/p>\n

\u4e3b\u8981\u66f4\u65b0<\/strong><\/div>\n

8.0 \u7248\u672c\u4e2d\u9664\u4e86\u5927\u91cf\u7684\u7ec6\u8282\u6539\u8fdb\u548c\u9519\u8bef\u4fee\u590d\u4ee5\u5916\uff0c\u4e3b\u8981\u652f\u6301\u4ee5\u4e0b\u7684\u65b0\u529f\u80fd\uff1a<\/p>\n

\u652f\u6301\u5f02\u6b65 I\/O \u548c\u901a\u9053channel<\/strong><\/span><\/div>\n

Vim \u73b0\u5728\u53ef\u4ee5\u548c\u540e\u53f0\u7684\u5176\u5b83\u8fdb\u7a0b\u8fdb\u884c\u6d88\u606f\u4ea4\u4e92\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u5f00\u53d1\u4e00\u4e2a\u8fd0\u884c\u5728\u540e\u53f0\u7684\u670d\u52a1\u5668\uff0c\u5e76\u5c06\u7ed3\u679c\u53d1\u56de\u7ed9 Vim\uff0c\u8fd9\u79cd\u4ea4\u4e92\u65b9\u5f0f\u79f0\u4e4b\u4e3a\u901a\u9053channel\u3002\u5728\u901a\u9053\u4e2d\u4f7f\u7528 JSON \u4f20\u9012\u6d88\u606f\uff0c\u56e0\u6b64\u4f60\u53ef\u4ee5\u7528\u4efb\u4f55\u4e00\u79cd\u8bed\u8a00\u6765\u5f00\u53d1\u540e\u53f0\u670d\u52a1\u5668\uff0c\u53ea\u9700\u8981\u5b83\u652f\u6301 JSON \u5373\u53ef\u3002\u901a\u8fc7\u652f\u6301\u8fd9\u79cd\u6280\u672f\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e9b\u529f\u80fd\u975e\u5e38\u590d\u6742\u7684\u63d2\u4ef6\u3002<\/p>\n

\u4efb\u52a1<\/strong><\/span><\/div>\n

Vim \u73b0\u5728\u4e5f\u80fd\u542f\u52a8\u4e00\u4e2a\u4efb\u52a1\uff0c\u5e76\u4e0e\u4e4b\u901a\u8baf\u6216\u505c\u6b62\u5b83\u3002\u6bd4\u5982\u8bf4\uff0c\u53ef\u4ee5\u542f\u52a8\u4e00\u4e2a\u7528\u4e8e\u81ea\u52a8\u8865\u5b8c\u3001\u683c\u5f0f\u68c0\u67e5\u7b49\u529f\u80fd\u7684\u8fdb\u7a0b\u3002\u5728\u4efb\u52a1\u548c Vim \u4e4b\u95f4\u7684\u901a\u8baf\u662f\u901a\u8fc7\u901a\u9053\u5b8c\u6210\u7684\u3002<\/p>\n

\u5b9a\u65f6\u5668<\/strong><\/span><\/div>\n

\u53e6\u5916\u4e00\u4e2a\u5f02\u6b65\u5de5\u4f5c\u7684\u662f\u5b9a\u65f6\u5668timer\uff0c\u53ef\u4ee5\u542f\u52a8\u4e00\u4e2a\u5b9a\u65f6\u5668\u5e76\u4e0d\u65ad\u91cd\u590d\u8c03\u7528\u67d0\u4e2a\u51fd\u6570\u3002\u6bd4\u5982\uff1alet tempTimer = timer_start(4000, 'CheckTemp')\u00a0\u3002<\/p>\n

Partial<\/strong><\/span><\/div>\n

Vim \u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a Funcref \u529f\u80fd\uff0c\u8fd9\u662f\u4e00\u4e2a\u51fd\u6570\u5f15\u7528\u3002partial \u4e5f\u662f\u4e00\u4e2a\u51fd\u6570\u5f15\u7528\uff0c\u4f46\u662f\u5b83\u53ef\u4ee5\u7ed1\u5b9a\u53c2\u6570\u6216\u5b57\u5178\u3002\u8fd9\u5bf9\u4e8e\u9891\u9053\u6216\u5b9a\u65f6\u5668\u7684\u56de\u8c03\u5f88\u6709\u7528\u3002 \u6bd4\u5982\uff1alet tempTimer = timer_start(4000, function('CheckTemp', ['out']))\u00a0\u3002<\/p>\n

Lambda \u548c\u95ed\u5305<\/strong><\/span><\/div>\n

lambda \u662f\u521b\u5efa\u51fd\u6570\u6700\u5feb\u7684\u65b9\u5f0f\uff0c\u6bd4\u5982\uff1a{args -> expr}\u3002\u5b83\u5bf9\u4e8e filter() \u548c map() \u5f88\u6709\u7528\uff0c\u800c\u4e14\u8fd8\u652f\u6301\u51fd\u6570\u53c2\u6570\u3002\u5982\uff1acall filter(mylist, {idx, val -> val > 20})\u3002<\/p>\n

lambda \u53ef\u4ee5\u4f7f\u7528\u5b9a\u4e49 lambda \u8868\u8fbe\u5f0f\u8303\u56f4\u5185\u7684\u53d8\u91cf\uff0c\u8fd9\u5e38\u88ab\u79f0\u4e4b\u4e3a\u95ed\u5305closure\u3002<\/p>\n

\u63d2\u4ef6\u5305<\/strong><\/span><\/div>\n

\u63d2\u4ef6\u8d8a\u6765\u8d8a\u591a\u4e86\uff0c\u4e3a\u4e86\u66f4\u597d\u7684\u7ba1\u7406\u63d2\u4ef6\uff0c\u56e0\u6b64\u652f\u6301\u4e86\u63d2\u4ef6\u5305\u7684\u652f\u6301\u3002<\/p>\n

\u7a97\u53e3 ID<\/strong><\/span><\/div>\n

\u4ee5\u524d Vim \u4e2d\u7684\u7a97\u53e3\u53ea\u80fd\u901a\u8fc7\u6570\u5b57\u7f16\u53f7\u6765\u8bbf\u95ee\uff0c\u5f53\u6253\u5f00\u3001\u5173\u95ed\u6216\u79fb\u52a8\u7a97\u53e3\u65f6\uff0c\u8fd9\u4e2a\u6570\u5b57\u4e5f\u968f\u4e4b\u800c\u53d8\u3002\u73b0\u5728\u6bcf\u4e2a\u7a97\u53e3\u90fd\u6709\u4e86\u4e00\u4e2a\u552f\u4e00\u7684 ID\uff0c\u53ef\u4ee5\u66f4\u65b9\u4fbf\u7684\u627e\u5230\u5b83\u4eec\u3002<\/p>\n

\u6298\u884c\u7f29\u8fdb<\/strong><\/span><\/div>\n

\u65b0\u589e\u7684 'breakindent' \u9009\u9879\u53ef\u4ee5\u4fdd\u8bc1\u5728\u6298\u884c\u65f6\u7ef4\u6301\u7f29\u8fdb\u4e0d\u53d8\u3002<\/p>\n

Windows\uff1a\u652f\u6301 DirectX<\/strong><\/span><\/div>\n

\u65b0\u589e\u7684 'renderoptions' \u9009\u9879\u53ef\u4ee5\u5728 Windows \u4e0a\u5207\u6362\u5230 DirectX \uff08DirectWrite\uff09\u5f15\u64ce\u4e0a\u3002<\/p>\n

\u652f\u6301 GTK+ 3<\/strong><\/span><\/div>\n

\u4e00\u822c\u7528\u6237\u5f88\u96be\u6ce8\u610f\u5230 GTK+ 3 \u548c GTK+ 2 \u7684\u533a\u522b\u3002\u5bf9\u8fd9\u4e24\u8005\u7684\u914d\u7f6e\u4ecd\u7136\u90fd\u652f\u6301\u3002<\/p>\n

\u66f4\u591a\u7684\u53d8\u5316\u7ec6\u8282\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u91cc\u3002<\/p>\n

\u4e0b\u8f7d:<\/strong><\/div>\n

\u5f97\u5230\u6700\u65b0\u7248\u672c\u7684 Vim \u7684\u6700\u597d\u65b9\u5f0f\u662f\u4f7f\u7528 Git \uff1a<\/p>\n

git\u00a0clone\u00a0https:\/\/github.com\/vim\/vim.git<\/p>\n

\u66f4\u591a\u4fe1\u606f\u53ef\u53c2\u8003\uff1a\u00a0http:\/\/www.vim.org\/git.php\u00a0\u3002<\/p>\n

UNIX\/Linux<\/strong><\/span><\/div>\n

\u6e90\u4ee3\u7801\u53ca\u8fd0\u884c\u65f6\u6587\u4ef6\uff1a\u00a0ftp:\/\/ftp.vim.org\/pub\/vim\/unix\/vim-8.0.tar.bz2\u00a0\u3002<\/p>\n

\u5728 Linux \u4e0b\uff0c\u4f60\u603b\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5\u6700\u65b0\u7684 Vim 8.0\uff0c\u4e0d\u8fc7\u5982\u679c\u4f60\u7684\u53d1\u884c\u7248\u4ed3\u5e93\u8fd8\u6ca1\u6709\u63d0\u4f9b\u7684\u65b0\u7684 8.0 \u7684\u8bdd\uff0c\u4f60\u53ef\u4ee5\u4eab\u53d7\u4e00\u4e0b\u81ea\u5df1\u7f16\u8bd1\u7684\u4e50\u8da3\u3002<\/p>\n

\u5982\u679c\u4f60\u5e0c\u671b\u6309\u7167\u4f60\u81ea\u5df1\u7684\u60f3\u6cd5\u5b9a\u5236\u4e00\u4e2a Vim\uff0c\u90a3\u4f60\u53ef\u4ee5\u4e0b\u8f7d\u6e90\u4ee3\u7801\uff0c\u5e76\u5728\u00a0src\u00a0\u76ee\u5f55\u91cc\u9762\u8fdb\u884c\u7f16\u8bd1\uff0c\u53ef\u4ee5\u53c2\u8003\u00a0src\/INSTALL\u00a0\u4e86\u89e3\u5982\u4f55\u7f16\u8bd1\u548c\u5b89\u88c5\u3002<\/p>\n

Windows<\/strong><\/span><\/div>\n

\u5b89\u88c5\u7a0b\u5e8f\uff1aftp:\/\/ftp.vim.org\/pub\/vim\/pc\/gvim80.exe<\/p>\n

\u8fd0\u884c\u65f6\u6587\u4ef6\uff1a\u00a0ftp:\/\/ftp.vim.org\/pub\/vim\/pc\/vim80rt.zip<\/p>\n

Windows 95\/98\/NT\/2000\/XP\/7 \u56fe\u5f62\u754c\u9762\u7248\uff1a\u00a0ftp:\/\/ftp.vim.org\/pub\/vim\/pc\/gvim80.zip<\/p>\n

\u5e26\u6709 OLE \u652f\u6301\u7684\u7248\u672c\uff1a\u00a0ftp:\/\/ftp.vim.org\/pub\/vim\/pc\/gvim80ole.zip<\/p>\n

Windows NT\/2000\/XP\/7 \u5b57\u7b26\u754c\u9762\u7248\uff1aftp:\/\/ftp.vim.org\/pub\/vim\/pc\/vim80w32.zip<\/p>\n

8.0 \u4e0d\u518d\u652f\u6301\u7684\u7248\u672c<\/p>\n

    \n
  1. 16 \u4f4d\u7684\u00a0DOS\u3001OS\/2 \u548c Amiga \u7248\u672c<\/li>\n
  2. 32 \u4f4d\u7684 MS-DOS\/Windows 95\/98 \u7684\u5b57\u7b26\u754c\u9762\u7248<\/li>\n
  3. 16 \u4f4d\u7684 MS-Windows \u7248\u672c<\/li>\n<\/ol>\n
    \u6587\u6863\u4e0e\u5e2e\u52a9<\/strong><\/div>\n

    \u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u6709\u4e00\u4e2a\u53eb\u00a0 vimtutor \u7684\u4e00\u5c0f\u65f6\u6559\u7a0b\u53ef\u4ee5\u770b\u770b\uff08\u5f53\u7136\u662f\u82f1\u6587\u7684\uff09\uff0c\u8bf7\u901a\u8fc7\u00a0:help tutor\u00a0\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n

    \u5b66\u4e60 Vim \u7684\u6700\u597d\u65b9\u5f0f\u4e4b\u4e00\u662f\u5728 Vim \u4e2d\u4f7f\u7528:help\uff0c\u5982\u679c\u4f60\u8fd8\u6ca1\u6709 Vim \u4e8c\u8fdb\u5236\u7a0b\u5e8f\uff0c\u4f60\u4e5f\u53ef\u4ee5\u770b\u770b\u00a0runtime\/doc\/help.txt\uff0c\u5b83\u5305\u542b\u4e86\u5bf9\u5176\u5b83\u6587\u6863\u7684\u6307\u5f15\u3002\u8fd9\u4e2a\u7528\u6237\u624b\u518c\u5c31\u50cf\u4e00\u672c\u4e66\u4e00\u6837\uff0c\u63a8\u8350\u4f7f\u7528\u5b83\u6765\u5b66\u4e60 Vim\u3002\u8be6\u89c1\u00a0:help user-manual\u3002<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.cnbeta.com\/articles\/538989.htm<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/vim-8-0.html<\/a>\u7f16\u8f91\uff1a\u674e\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u611f\u8c22Linux \u4e2d\u56fd\u7684\u6295\u9012
    \n\u5341\u5e74\u4ee5\u540e\uff0cVim \u7ec8\u4e8e\u53d1\u5e03\u4e86\u4e00\u4e2a\u65b0\u7684\u5927\u7248\u672c 8.0\uff0c\u7ed3\u675f\u4e86\u4ece 2006 \u5e74 5 \u6708 7 \u65e5\u5f00\u59cb\u7684 7.0 \u4e16\u4ee3\u3002\u867d\u7136\u8fd9\u5341\u5e74\u95f4\uff0cVim \u4e5f\u4e00\u76f4\u5728\u4e0d\u65ad\u66f4\u65b0\uff0c\u4ece 7.0 \u5230\u4e09\u5e74\u524d\u7684 7.4\uff0c\u6bcf\u9694\u4e00\u4e24\u5e74\u6216\u4e24\u4e09\u5e74\u5c31\u4f1a\u6709\u4e2a\u5c0f\u7248\u672c\u66f4\u65b0\uff0c\u4f46\u662f\u8fd9\u6b21\u8de8\u8d8a\u5927\u7248\u672c\u66f4\u65b0\uff0c\u5e26\u6765\u4e86\u4e0d\u5c11\u65b0\u7684\u7279\u6027\uff0c\u636e\u8bf4\u6709\u4e00\u4e9b\u662f\u4ece\u5176\u5b83\u7684 Vi \u6d41\u6d3e\u5438\u6536\u6765\u7684\u7279\u6027\u3002<\/p>\n","protected":false},"author":63,"featured_media":30948,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-30831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/30831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=30831"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/30831\/revisions"}],"predecessor-version":[{"id":259348,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/30831\/revisions\/259348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/30948"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=30831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=30831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=30831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}