{"id":109867,"date":"2024-11-27T18:33:13","date_gmt":"2024-11-27T10:33:13","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=109867"},"modified":"2024-11-27T18:33:13","modified_gmt":"2024-11-27T10:33:13","slug":"vi-viki-note","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/vi-viki-note.html","title":{"rendered":"\u7528 vi \u6765\u7ba1\u7406 wiki \u7b14\u8bb0"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u7528 vi \u6765\u7ba1\u7406 wiki \u6765\u8bb0\u5f55\u4f60\u7684\u7b14\u8bb0\uff0c\u8fd9\u542c\u8d77\u6765\u4e0d\u50cf\u662f\u4e00\u4e2a\u7b26\u5408\u5e38\u89c4\u7684\u4e3b\u610f\uff0c\u4f46\u5f53\u4f60\u7684\u65e5\u5e38\u5de5\u4f5c\u90fd\u4f1a\u7528\u5230 vi , \u90a3\u5b83\u662f\u6709\u610f\u4e49\u7684\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4f5c\u4e3a\u4e00\u4e2a\u8f6f\u4ef6\u5f00\u53d1\u4eba\u5458\uff0c\u4f7f\u7528\u540c\u7f16\u7801\u4e00\u6837\u7684\u5de5\u5177\u6765\u5199\u7b14\u8bb0\u4f1a\u66f4\u52a0\u7b80\u5355\u3002\u6211\u60f3\u5c06\u6211\u7684\u7b14\u8bb0\u53d8\u6210\u4e00\u79cd\u7f16\u8f91\u5668\u547d\u4ee4\uff0c\u65e0\u8bba\u6211\u5728\u54ea\u91cc\uff0c\u90fd\u80fd\u591f\u7528\u7ba1\u7406\u6211\u4ee3\u7801\u7684\u65b9\u6cd5\u6765\u7ba1\u7406\u6211\u7684\u7b14\u8bb0\u3002\u8fd9\u4fbf\u662f\u6211\u521b\u5efa\u4e00\u4e2a\u57fa\u4e8e vi \u7684\u73af\u5883\u6765\u642d\u5efa\u6211\u81ea\u5df1\u7684\u77e5\u8bc6\u5e93\u7684\u539f\u56e0\u3002\u7b80\u5355\u6982\u62ec\u8d77\u6765\uff0c\u6211\u5728\u7b14\u8bb0\u672c\u7535\u8111\u4e0a\u7528 vi \u63d2\u4ef6 Viwiki \u6765\u672c\u5730\u7ba1\u7406\u6211\u7684 wiki\u3002\u7528 Git \u6765\u8fdb\u884c\u7248\u672c\u63a7\u5236\uff08\u4ee5\u4fdd\u7559\u4e00\u4e2a\u4e2d\u5fc3\u5316\u7684\u66f4\u65b0\u7248\u672c\uff09\uff0c\u5e76\u7528 GitLab \u6765\u8fdb\u884c\u5728\u7ebf\u4fee\u6539\uff08\u4f8b\u5982\u5728\u6211\u7684\u624b\u673a\u4e0a\uff09\u3002<\/p>\n \u4e3a\u4ec0\u4e48\u7528 wiki \u6765\u8fdb\u884c\u7b14\u8bb0\u4fdd\u5b58\u662f\u6709\u610f\u4e49<\/strong><\/div>\n \u6211\u5c1d\u8bd5\u8fc7\u8bb8\u591a\u4e0d\u540c\u7684\u5de5\u5177\u6765\u6301\u7eed\u7684\u8bb0\u5f55\u6211\u7684\u7b14\u8bb0\uff0c\u7b14\u8bb0\u91cc\u4fdd\u5b58\u7740\u6211\u7684\u7075\u611f\u4ee5\u53ca\u9700\u8981\u8bb0\u4f4f\u7684\u4efb\u52a1\u5b89\u6392\u3002\u8fd9\u5305\u62ec\u7ebf\u4e0b\u7684\u7b14\u8bb0\u672c \uff08\u6ca1\u9519\uff0c\u7eb8\u8d28\u7684\uff09\u3001\u7279\u6b8a\u7684\u8bb0\u5f55\u7b14\u8bb0\u7684\u8f6f\u4ef6\uff0c\u4ee5\u53ca\u601d\u7ef4\u5bfc\u56fe\u8f6f\u4ef6\u3002<\/p>\n \u4f46\u6bcf\u79cd\u65b9\u6848\u90fd\u6709\u4e0d\u597d\u4e00\u9762\uff0c\u6ca1\u6709\u4e00\u4e2a\u80fd\u591f\u6ee1\u8db3\u6211\u6240\u6709\u7684\u9700\u6c42\u3002\u4f8b\u5982\u601d\u7ef4\u5bfc\u56fe\uff0c\u80fd\u591f\u5f88\u597d\u7684\u5f62\u8c61\u5316\u4f60\u7684\u60f3\u6cd5\uff08\u56e0\u800c\u5f97\u540d\uff09\uff0c\u4f46\u662f\u8fd9\u79cd\u5de5\u5177\u7684\u641c\u7d22\u529f\u80fd\u5f88\u5dee\uff08\u548c\u7eb8\u8d28\u7b14\u8bb0\u672c\u4e00\u6837\uff09\u3002\u6b64\u5916\uff0c\u5f53\u4e00\u6bb5\u65f6\u95f4\u8fc7\u53bb\uff0c\u601d\u7ef4\u5bfc\u56fe\u4f1a\u53d8\u5f97\u5f88\u96be\u9605\u8bfb\uff0c\u6240\u4ee5\u601d\u7ef4\u5bfc\u56fe\u4e0d\u9002\u5408\u957f\u65f6\u95f4\u4fdd\u5b58\u7684\u7b14\u8bb0\u3002<\/p>\n \u6211\u4e3a\u4e00\u4e2a\u5408\u4f5c\u9879\u76ee\u914d\u7f6e\u4e86 DokuWiki\uff0c\u6211\u53d1\u73b0\u8fd9\u4e2a wiki \u6a21\u578b\u7b26\u5408\u4e86\u6211\u5927\u591a\u6570\u7684\u9700\u6c42\u3002\u5728 wiki \u4e0a\uff0c\u4f60\u80fd\u591f\u521b\u5efa\u4e00\u4e2a\u7b14\u8bb0\uff08\u548c\u4f60\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u6240\u4f5c\u7684\u4e00\u6837\uff09\uff0c\u5e76\u5728\u7b14\u8bb0\u95f4\u521b\u5efa\u94fe\u63a5\u3002\u5982\u679c\u4e00\u4e2a\u94fe\u63a5\u6307\u5411\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u9875\u9762\uff08\u4f60\u60f3\u8ba9\u672c\u9875\u9762\u6dfb\u52a0\u4e00\u6761\u8fd8\u6ca1\u6709\u521b\u5efa\u7684\u4fe1\u606f\uff09\uff0c wiki \u4f1a\u4e3a\u4f60\u5efa\u7acb\u8fd9\u4e2a\u9875\u9762\u3002\u8fd9\u4e2a\u7279\u6027\u4f7f\u5f97 wiki \u5f88\u597d\u7684\u9002\u5e94\u4e86\u90a3\u4e9b\u9700\u8981\u5feb\u901f\u5199\u4e0b\u5fc3\u4e2d\u6240\u60f3\u7684\u4eba\u7684\u9700\u6c42\uff0c\u800c\u4ecd\u5c06\u4f60\u7684\u7b14\u8bb0\u4fdd\u6301\u5728\u80fd\u591f\u5bb9\u6613\u6d4f\u89c8\u548c\u641c\u7d22\u5173\u952e\u5b57\u7684\u9875\u9762\u7ed3\u6784\u4e2d\u3002<\/p>\n \u8fd9\u770b\u8d77\u6765\u5f88\u6709\u5e0c\u671b\uff0c\u5e76\u4e14\u914d\u7f6e DokuWiki \u4e5f\u5f88\u5bb9\u6613\uff0c\u4f46\u6211\u53d1\u73b0\u53ea\u662f\u4e3a\u4e86\u8bb0\u4e2a\u7b14\u8bb0\u800c\u914d\u7f6e\u6574\u4e2a wiki \u9700\u8981\u82b1\u8d39\u592a\u591a\u5de5\u4f5c\u3002\u5728\u4e00\u756a\u641c\u7d22\u540e\uff0c\u6211\u53d1\u73b0\u4e86 Vimwiki\uff0c\u8fd9\u662f\u4e00\u4e2a\u6211\u60f3\u8981\u7684 vi \u63d2\u4ef6\u3002\u56e0\u4e3a\u6211\u6bcf\u5929\u4f7f\u7528 vi\uff0c\u8bb0\u5f55\u7b14\u8bb0\u5c31\u884c\u7f16\u8f91\u4ee3\u7801\u4e00\u6837\u3002\u751a\u81f3\u5728 vimwiki \u521b\u5efa\u4e00\u4e2a\u9875\u9762\u6bd4 Dokuwiki \u66f4\u7b80\u5355\u3002\u4f60\u53ea\u9700\u8981\u5bf9\u5149\u6807\u4e0b\u7684\u5355\u8bcd\u6309\u4e0b\u56de\u8f66\u952e\u5c31\u884c\u3002\u5982\u679c\u6ca1\u6709\u6587\u4ef6\u662f\u8fd9\u4e2a\u540d\u5b57\uff0cvimwiki \u4f1a\u4e3a\u4f60\u521b\u5efa\u4e00\u4e2a\u3002<\/p>\n \u4e3a\u4e86\u66f4\u4e00\u6b65\u7684\u5b9e\u73b0\u7528\u6bcf\u5929\u90fd\u4f1a\u4f7f\u7528\u7684\u5de5\u5177\u6765\u505a\u7b14\u8bb0\u7684\u8ba1\u5212\uff0c\u6211\u4e0d\u4ec5\u7528\u8fd9\u4e2a\u6211\u6700\u7231\u7684 IDE \u6765\u5199\u7b14\u8bb0\uff0c\u800c\u4e14\u7528 Git \u548c GitLab \u2014\u2014 \u6211\u6700\u7231\u7684\u4ee3\u7801\u7ba1\u7406\u5de5\u5177 \u2014\u2014 \u5728\u6211\u7684\u5404\u4e2a\u673a\u5668\u95f4\u5206\u53d1\u6211\u7684\u7b14\u8bb0\uff0c\u4ee5\u4fbf\u6211\u53ef\u4ee5\u5728\u7ebf\u8bbf\u95ee\u5b83\u4eec\u3002\u6211\u4e5f\u662f\u5728 Gitlab \u7684\u5728\u7ebf markdown \u5de5\u5177\u4e0a\u7528 markdown \u8bed\u6cd5\u6765\u5199\u7684\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n \u914d\u7f6e vimwiki<\/strong><\/div>\n \u7528\u4f60\u5df2\u6709\u7684\u63d2\u4ef6\u7ba1\u7406\u5de5\u5177\u6765\u5b89\u88c5 vimwiki \u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u6dfb\u52a0 vimwiki\/vimwiki \u5230\u4f60\u7684\u63d2\u4ef6\u3002\u5bf9\u4e8e\u6211\u7684\u559c\u7231\u7684\u63d2\u4ef6\u7ba1\u7406\u5668 Vundle \u6765\u8bf4\uff0c\u4f60\u53ea\u9700\u8981\u5728 \/.vimrc \u4e2d\u6dfb\u52a0 plugin vimwiki\/vimwiki \u8fd9\u4e00\u884c\uff0c\u7136\u540e\u6267\u884c :source ~\/.vimrc | PluginInstall \u5c31\u884c\u3002<\/p>\n \u4e0b\u9762\u662f\u6211\u7684\u6587\u4ef6 .vimrc \u7684\u4e00\u90e8\u5206\uff0c\u5c55\u793a\u4e86\u4e00\u4e9b vimwiki \u914d\u7f6e\u3002\u4f60\u80fd\u5728 vimwiki \u9875\u9762\u5b66\u5230\u66f4\u591a\u7684\u914d\u7f6e\u548c\u4f7f\u7528\u7684\u7684\u4fe1\u606f\u3002<\/p>\n let wiki_1 = {}\r\nlet wiki_1.path = '~\/vimwiki_work_md\/'\r\nlet wiki_1.syntax = 'markdown'\r\nlet wiki_1.ext = '.md'\r\nlet wiki_2 = {}\r\nlet wiki_2.path = '~\/vimwiki_personal_md\/'\r\nlet wiki_2.syntax = 'markdown'\r\nlet wiki_2.ext = '.md'\r\nlet g:vimwiki_list = [wiki_1, wiki_2]\r\nlet g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}\r\n<\/pre>\n |