﻿{"id":1204,"date":"2014-05-30T14:46:35","date_gmt":"2014-05-30T06:46:35","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1204"},"modified":"2014-05-30T14:47:08","modified_gmt":"2014-05-30T06:47:08","slug":"mac-vim%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/linux\/1204","title":{"rendered":"mac vim\u914d\u7f6e"},"content":{"rendered":"<p>\u7ec8\u4e8e\u8fd8\u662f\u53d7\u4e0d\u4e86vi\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u4e86&#8230;<\/p>\n<pre lang=\"shell\" escaped=\"true\">\nsudo vim \/usr\/share\/vim\/vimrc\n<\/pre>\n<p>\u5728set backspace=2\u8fd9\u884c\u4e0b\u63d2\u5165\uff08VIM\u7684\u64cd\u4f5c\u4e0d\u8d58\u8ff0\uff0c\u60f3\u505a\u8fd9\u4e2a\u4fee\u6539\u7684\u80af\u5b9a\u90fd\u4f1a\u4f7fVIM\uff09\u5982\u4e0b\u914d\u7f6e<\/p>\n<pre lang=\"shell\" line=\"1\" escaped=\"true\">set ai                  \" auto indenting\nset history=100         \" keep 100 lines of history\nset ruler               \" show the cursor position\nsyntax on               \" syntax highlighting\nset hlsearch            \" highlight the last searched term\nfiletype plugin on      \" use the file type plugins\n\n\" When editing a file, always jump to the last cursor position\nautocmd BufReadPost *\n\\ if ! exists(\"g:leave_my_cursor_position_alone\") |\n\\ if line(\"'\\\"\") > 0 && line (\"'\\\"\") <= line(\"$\") |\n\\ exe \"normal g'\\\"\" |\n\\ endif |\n\\ endif\n\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>\u7ec8\u4e8e\u8fd8\u662f\u53d7\u4e0d\u4e86vi\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u4e86&#8230; sudo vim \/usr\/share\/vim\/vimrc \u5728set backspace=2\u8fd9\u884c\u4e0b\u63d2\u5165\uff08VIM\u7684\u64cd\u4f5c\u4e0d\u8d58\u8ff0\uff0c\u60f3\u505a\u8fd9\u4e2a\u4fee\u6539\u7684\u80af\u5b9a\u90fd\u4f1a\u4f7fVIM&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,340],"tags":[381,282],"class_list":["post-1204","post","type-post","status-publish","format-standard","hentry","category-linux","category-mac-os","tag-vi","tag-vim"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1204"}],"version-history":[{"count":10,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1204\/revisions"}],"predecessor-version":[{"id":1214,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1204\/revisions\/1214"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1204"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}