{"id":7034,"date":"2022-06-28T10:02:25","date_gmt":"2022-06-28T02:02:25","guid":{"rendered":"http:\/\/gulass.cn\/?p=7034"},"modified":"2022-06-28T13:22:37","modified_gmt":"2022-06-28T05:22:37","slug":"vim-originally-can-play-like-this","status":"publish","type":"post","link":"https:\/\/gulass.cn\/vim-originally-can-play-like-this.html","title":{"rendered":"\u9ad8\u903c\u683c\u7684\u753b\u56fe\uff1aVIM\u539f\u6765\u53ef\u4ee5\u8fd9\u6837\u73a9"},"content":{"rendered":"
\n

\u672c\u6587\u7531gulass.cn\u56e2\u961f\u6210\u5458\u9b4f\u4e3d\u733f<\/span>\u6574\u7406\u53d1\u5e03\uff0c\u539f\u6587\u6765\u81ea\uff1aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66<\/a>\u3002<\/p>\n<\/div>\n

\u5728Linux\u4e0a\u5176\u5b9e\u5e76\u4e0d\u7f3a\u5c11\u753b\u56fe\u8f6f\u4ef6\uff08\u6bd4\u5982yEd\u7b49\uff09\uff0c\u90a3\u4e48\u4e3a\u4ec0\u4e48\u8fd8\u9700\u8981\u7528VIM\u6765\u753b\u56fe\uff1a<\/p>\n

    \n
  1. \u66f4\u8f7b\uff0c\u4e0d\u9700\u8981\u5b89\u88c5\u592a\u591a\u4e1c\u897f<\/li>\n
  2. \u66f4\u5c0f\uff0c\u5c31\u662f\u4e00\u4e9b\u6587\u672c\uff0c\u6bd4\u56fe\u7247\u4ec0\u4e48\u7684\u5c0f\u591a\u4e86\uff0c\u4f7f\u7528\u8d77\u6765\u4e5f\u66f4\u7b80\u5355<\/li>\n
  3. \u66f4\u6709\u903c\u683c<\/li>\n<\/ol>\n

    \"vimlogo\"
    \n\u90a3\u4e48\u6211\u4eec\u8be5\u600e\u4e48\u505a\u5462\uff1f\u9996\u5148\uff0c\u5728VIM\u4e2d\u5b89\u88c5DrawIt\u63d2\u4ef6,\u53ef\u4ee5\u53c2\u8003\u8fd9\u91cc:
    \nvundle\u8ba9\u4f60\u4e0d\u9700\u8981\u5728\u7ea0\u7ed3\u5230\u54ea\u91cc\u53bb\u627e\u63d2\u4ef6\u548c\u914d\u7f6e\uff0c\u6240\u6709\u7684\u63d2\u4ef6\u90fd\u4ee5\u76f8\u4f3c\u7684\u65b9\u5f0f\u8fdb\u884c\u7ba1\u7406\uff0c\u5f88\u5927\u7a0b\u5ea6\u4e0a\u964d\u4f4e\u4e86\u4f7f\u7528\u6210\u672c\uff01\u63d2\u4ef6\u5b58\u653e\u7684\u8def\u5f84\u4e3a~\/.vim\/bundle\/\uff0c\u76ee\u5f55\u5efa\u597d\u540e\u4e0b\u8f7dvundle\uff1a<\/p>\n

    git clone https:\/\/github.com\/VundleVim\/Vundle.vim.git ~\/.vim\/bundle\/Vundle.vim\r\n<\/pre>\n

    \u4ee5\u540e\u914d\u7f6e\u90fd\u53ef\u4ee5\u5728~\/.vimrc\u91cc\u9762\u5b8c\u6210\uff1a<\/p>\n

    set nocompatible                       \" \u5173\u95ed\u517c\u5bb9\u6a21\u5f0f\r\nfiletype off                           \" \u5173\u95ed\u5bf9\u6587\u4ef6\u7c7b\u578b\u7684\u81ea\u52a8\u68c0\u6d4b\r\nset rtp+=~\/.vim\/bundle\/Vundle.vim      \" \u52a0\u5165\u8fd0\u884c\u65f6\u8def\u5f84\r\ncall vundle#begin()                    \" \u521d\u59cb\u5316\r\n\" \u63d2\u4ef6\u5217\u8868\u5f00\u59cb\r\nPlugin 'VundleVim\/Vundle.vim'          \r\n\" \u63d2\u4ef6\u5217\u8868\u7ed3\u675f\r\ncall vundle#end()                      \" \u5b8c\u6210\r\nfiletype plugin indent on              \" \u6253\u5f00\u6587\u4ef6\u7c7b\u578b\u68c0\u6d4b<\/pre>\n

    \u5e38\u7528\u7684\u63d2\u4ef6\u6765\u6e90\u914d\u7f6e\u6709\uff1a<\/p>\n

    github.com\tgithub\u4e0a\u6258\u7ba1\u7684\u63d2\u4ef6\uff08Plugin \u2018tpope\/vim-fugitive\u2019\uff09\r\nvim-scripts.org\/vim\/scripts.html\t\u5728\u8be5\u7ad9\u7ef4\u62a4\u7684\u63d2\u4ef6\uff08Plugin \u2018L9\u2019\uff09<\/pre>\n

    \u914d\u7f6e\u5b8c\u6210\u540e\u6253\u5f00VIM\u5c31\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528\u4e86\uff0c\u7528\u5230\u4e0b\u9762\u547d\u4ee4\uff1a<\/p>\n

    :PluginList\uff1a\u6253\u5f00\u63d2\u4ef6\u5217\u8868\r\n:PluginInstall\uff1a\u5b89\u88c5\u63d2\u4ef6\r\n:PluginSearch foo\uff1a\u641c\u7d22\u63d2\u4ef6\uff0c\u627e\u5230\u4e4b\u540e\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\r\n:PluginClean\uff1a\u6e05\u7406\u4e0d\u7528\u7684\u63d2\u4ef6<\/pre>\n

    \u6700\u540e\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5f53\u4f60\u60f3\u5b89\u88c5winmanager\u63d2\u4ef6\u65f6\uff1a<\/p>\n

    \u5728.vimrc\u4e2d\u6dfb\u52a0Plugin 'winmanager'\r\n\u6253\u5f00vim\r\n\u6267\u884c:PluginList\u5c31\u53ef\u4ee5\u770b\u5230winmanager\u63d2\u4ef6\r\n\u6267\u884c:PluginInstall\u8fdb\u884c\u5b89\u88c5<\/pre>\n

    \u7136\u540e\u5c31\u53ef\u4ee5\u5f00\u59cb\u753b\u56fe\u4e4b\u65c5\uff0c\u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\u4f7f\u7528\uff1a<\/p>\n

    \\di                    #\u5f00\u542fDrawIt\r\n\\ds                    #\u5173\u95edDrawIt\r\n<\/pre>\n

    \u5f00\u542f\u4e4b\u540e\u6709\u4e24\u79cd\u6a21\u5f0f\uff1a\u753b\u56fe\u548c\u64e6\u9664\uff0c\u4ed6\u4eec\u4e4b\u95f4\u901a\u8fc7\u7a7a\u683c\u6765\u5207\u6362\u3002
    \n\u53ef\u4ee5\u4f7f\u7528\u6309\u952e\u6765\u63a7\u5236\u5411\u516b\u4e2a\u65b9\u5411\u753b\u7ebf\uff08\u6216\u8005\u64e6\u9664\uff09\uff1a<\/p>\n

    \u65b9\u5411\u952e\u7684\u4e0a\u3001\u4e0b\u3001\u5de6\u3001\u53f3\u5206\u522b\u5bf9\u5e94\u5176\u56db\u4e2a\u65b9\u5411\r\nPgup                 #\u4e0a\u53f3\r\nPgdn                 #\u4e0b\u53f3\r\nHome                 #\u5de6\u4e0a\r\nEnd                  #\u5de6\u4e0b<\/pre>\n

    \u5982\u4e0b\u56fe\uff08\u5176\u5b9e\u4e5f\u4e0d\u9700\u8981\u8bb0\uff0c\u548c\u952e\u76d8\u4e0a\u7684\u4f4d\u7f6e\u662f\u4e00\u81f4\u7684\uff09\uff1a<\/p>\n

                             Home    Up   Pgup\r\n                             \\   |   \/ \r\n                              \\  |  \/ \r\n                               \\ | \/ \r\n                                \\|\/ \r\n                        Left----------Right\r\n                                \/|\\\r\n                               \/ | \\\r\n                              \/  |  \\\r\n                             \/   |   \\\r\n                          End   Down  Pgdn<\/pre>\n

    \u7bad\u5934\u7684\u753b\u6cd5\u4e5f\u5f88\u76f4\u89c2\uff0c\u7b80\u5355\u7684\u7bad\u5934\u7528>\u3001\u3001\\<\u3001\\^\u3001\\v\u6765\u5f04\uff08\u611f\u89c9\u7c97\u7684\u7bad\u5934\u4e0d\u592a\u597d\u63a7\u5236\uff09\uff1a<\/p>\n

     >  <|\r\n              \r\n   _ _      . \r\n   \\ \/     \/_\\\r\n    '<\/pre>\n

    \u7528\u9f20\u6807\u53ef\u4ee5\u9009\u62e9\u5757\uff0c\u8fd9\u5bf9\u540e\u9762\u7684\u64cd\u4f5c\u6709\u4e00\u5b9a\u7684\u7b80\u5316\uff0c\u5229\u7528\u7528\\a\uff08\\l\u4e0d\u5e26\u7bad\u5934\uff09\u6765\u6839\u636e\u9009\u4e2d\u7684\u5757\u6765\u753b\u7ebf\uff1a<\/p>\n

    -------                               \r\n       \\-----------                   \r\n                   \\-----------       \r\n                               \\-----><\/pre>\n

    \u6216\u7528\\b\u6765\u753b\u77e9\u5f62\u6846\u6216\u8005\u7528\\e\u6765\u753b\u692d\u5706\uff1a<\/p>\n

    +--------------------+          *************      \r\n|                    |      ****             ****  \r\n|                    |    **                     **\r\n+--------------------+    *                       *\r\n                          **                     **\r\n                            ****             ****  \r\n                                *************<\/pre>\n

    \u5b8c\u4e8b\u4e86\u53ef\u4ee5\u7528\\f\u6765\u5bf9\u56fe\u5f62\u8fdb\u884c\u586b\u5145\uff1a<\/p>\n

    +------------------+\r\n|##################|\r\n|##################|\r\n|##################|\r\n+------------------+<\/pre>\n

    \u4f4d\u7f6e\u6709\u4e00\u4e9b\u504f\u5dee\u662f\u5e38\u6709\u7684\u4e8b\u60c5\uff0c\u8fd9\u65f6\u5019\u4e0d\u8981\u6025\u7740\u91cd\u753b\uff1a<\/p>\n

    \u7528\u9f20\u6807\u9009\u4e2d\u8981\u79fb\u52a8\u7684\u5757\uff0c\u7136\u540e\u6309\u4f4fctrl\u5e76\u62d6\u52a8\u9f20\u6807\u3002\r\n<\/pre>\n

    \u5f53\u8981\u64e6\u9664\u4e00\u6574\u5feb\u7684\u5185\u5bb9\u65f6\uff0c\u7528\u65b9\u5411\u952e\u6765\u641e\u4e5f\u6bd4\u8f83\u86cb\u75bc\uff0c\u53ef\u4ee5\u7528\uff1a<\/p>\n

    \u7528\u9f20\u6807\u9009\u4e2d\u8981\u64e6\u9664\u7684\u90e8\u5206\uff0c\u7136\u540e\u6267\u884cr \uff08\u76f8\u5f53\u4e8e\u7528\u7a7a\u683c\u66ff\u6362\uff09\u3002\r\n<\/pre>\n

    \u53e6\u5916\u9700\u8981\u6ce8\u610f\uff1aubuntu\u548cmint\u4e0a\u5b89\u88c5\u5230VIM\u9ed8\u8ba4\u662f\u4e0d\u652f\u6301\u7cfb\u7edf\u526a\u8d34\u677f\u7684\uff0c\u9700\u8981\u5b89\u88c5\uff1a<\/p>\n

    sudo apt-get install vim-gnome\r\n<\/pre>\n

    \u7b80\u5355\u4f53\u9a8c\u4e0b\u6765\uff0c\u5982\u679c\u80fd\u7075\u6d3b\u8fd0\u7528VIM\u672c\u8eab\u7684\u5f3a\u5927\u529f\u80fd\uff08\u590d\u5236\u3001\u7c98\u8d34\u7b49\uff09\uff0cDrawIt\u7528\u8d77\u6765\u8fd8\u662f\u633a\u7ed9\u529b\u7684\uff01PS\uff1a\u63d0\u793a\u4e00\u4e0b\uff0c\u90a3\u4e9b\u7bad\u5934\u7b26\u53f7\u90fd\u662f\u952e\u76d8\u4e0a\u6309\u952e\uff0c\u4ed4\u7ec6\u627e\u627e\u5427\uff01<\/p>\n

    \n

    \u672c\u6587\u5730\u5740\uff1ahttp:\/\/gulass.cn\/vim-originally-can-play-like-this.html<\/a>\u7f16\u8f91\uff1a\u9b4f\u4e3d\u733f\uff0c\u5ba1\u6838\u5458\uff1a\u5f20\u5b8f\u5b87<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u5728Linux\u4e0a\u5176\u5b9e\u5e76\u4e0d\u7f3a\u5c11\u753b\u56fe\u8f6f\u4ef6\uff08\u6bd4\u5982yEd\u7b49\uff09\uff0c\u90a3\u4e48\u4e3a\u4ec0\u4e48\u8fd8\u9700\u8981\u7528VIM\u6765\u753b\u56fe\uff1a \u66f4\u8f7b\uff0c\u4e0d\u9700\u8981\u5b89\u88c5\u592a\u591a\u4e1c\u897f […]<\/p>\n","protected":false},"author":317,"featured_media":7037,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-7034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/7034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=7034"}],"version-history":[{"count":7,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/7034\/revisions"}],"predecessor-version":[{"id":246546,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/7034\/revisions\/246546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/7037"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=7034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=7034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=7034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}