{"id":1014,"date":"2010-09-09T12:53:35","date_gmt":"2010-09-09T04:53:35","guid":{"rendered":"http:\/\/blog.axqd.net\/?p=1014"},"modified":"2010-09-09T12:53:35","modified_gmt":"2010-09-09T04:53:35","slug":"better-javascript-syntax-support","status":"publish","type":"post","link":"https:\/\/blog.axqd.net\/?p=1014","title":{"rendered":"Better Javascript Syntax Support"},"content":{"rendered":"<p>\u8fd1\u6765\u9700\u8981\u770b\u4e00\u6bb5\u88ab\u6df7\u6dc6\u7684Javascript\uff0c\u6240\u6709\u4ee3\u7801\u90fd\u6324\u5728\u4e00\u884c\uff0c\u5f88\u662f\u96be\u8fc7\u3002\u770b\u90a3\u4e00\u5c4f\u7684\u4e71\u7801\uff0c\u624b\u52a8\u6574\u7406\u81ea\u7136\u4e0d\u53ef\u80fd\uff0c\u597d\u5728vim\u6709\u81ea\u52a8\u683c\u5f0f\u5316\u3002<\/p>\n<p>\u4e0d\u8fc7Vim Bundle\u81ea\u5e26\u7684Syntax\u683c\u5f0f\u5316\u51fa\u6765\uff0c\u90a3\u53eb\u4e00\u4e2a\u60e8\u4e0d\u5fcd\u7779\u3002\u7f51\u4e0a\u641c\u4e86\u4e00\u4e0b\uff0c\u5c06\u4fe1\u5c06\u7591\u7684\u4e0b\u8f7d\u4e86<a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1491\"><strong>\u8fd9\u4e2a\u811a\u672c<\/strong><\/a>\u81f3C:Program Files (x86)Vimvim73syntaxjavascript.vim\uff0c\u771f\u7684\u5f88\u662f\u597d\u7528\u554a\uff0c\u5475\u5475<\/p>\n<ol>\n<li>Copy &amp; Paste \u62f7\u8d1d\u7c98\u8d34<\/li>\n<li>:g\/;\/s\/\/;r\/g \u4ee5\u5206\u53f7\u6362\u884c<\/li>\n<li>:g\/{\/s\/\/r{r\/g \u4ee5{\u6362\u884c<\/li>\n<li>:g\/}\/s\/\/r}r\/g \u4ee5}\u6362\u884c<\/li>\n<li>:set filetype=javascript \u4f7f\u7528\u65b0\u4e0b\u8f7d\u7684\u90a3\u4e2aSyntax\u811a\u672c\u6587\u4ef6<\/li>\n<li>gg=G \u683c\u5f0f\u5316<\/li>\n<li>:g\/^$\/d \u5220\u6389\u7a7a\u884c<\/li>\n<\/ol>\n<p>\u6253\u5b8c\u6536\u5de5\uff0c\u683c\u5f0f\u5316\u5f97\u5f88\u662f\u5b8c\u7f8e&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u6765\u9700\u8981\u770b\u4e00\u6bb5\u88ab\u6df7\u6dc6\u7684Javascript\uff0c\u6240\u6709\u4ee3\u7801\u90fd\u6324\u5728\u4e00\u884c\uff0c\u5f88\u662f\u96be\u8fc7\u3002\u770b\u90a3\u4e00\u5c4f\u7684\u4e71\u7801\uff0c\u624b\u52a8\u6574\u7406\u81ea\u7136\u4e0d\u53ef\u80fd\uff0c &hellip; <a href=\"https:\/\/blog.axqd.net\/?p=1014\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cBetter Javascript Syntax Support\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[89,146,158],"class_list":["post-1014","post","type-post","status-publish","format-standard","hentry","category-tech","tag-javascript","tag-syntax","tag-vim"],"_links":{"self":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts\/1014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1014"}],"version-history":[{"count":0,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts\/1014\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}