{"id":1539,"date":"2013-02-25T17:14:43","date_gmt":"2013-02-25T09:14:43","guid":{"rendered":"http:\/\/me.doucl.com\/?p=1539"},"modified":"2013-02-25T17:14:43","modified_gmt":"2013-02-25T09:14:43","slug":"vim-move-mark-jumps","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/vim\/vim-move-mark-jumps.html","title":{"rendered":"VIM\u6807\u8bb0\u548c\u8df3\u8f6c\u5217\u8868\u4ecb\u7ecd"},"content":{"rendered":"
\u8df3\u8f6c\u5217\u8868<\/strong><\/p>\n \u5f53\u4f60\u7528 “G” \u547d\u4ee4\u8df3\u5230\u53e6\u4e00\u4e2a\u5730\u65b9\uff0cVim \u4f1a\u8bb0\u4f4f\u4f60\u4ece\u4ec0\u4e48\u5730\u65b9\u8df3\u8fc7\u53bb\u7684\u3002\u8fd9\u4e2a\u4f4d\u7f6e\u6210\u4e3a\u4e00\u4e2a\u6807\u8bb0\uff0c\u8981\u56de\u5230\u539f\u6765\u7684\u5730\u65b9\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n ”\uff08\u4e24\u4e2a\u5355\u5f15\u53f7\uff09\u548c“(\u4e24\u4e2a\u53cd\u5f15\u53f7\uff0c\u5728\u952e\u76d8\u4e0a\u548c\u201d~\u201d\u5171\u7528\u4e00\u4e2a\u952e)“\u4e24\u4e2a \u547d\u4ee4\u53ef\u4ee5\u5728\u4e24\u4e2a\u4f4d\u7f6e\u4e0a\u8df3\u6765\u8df3\u53bb\u3002<\/p>\n \u4f7f\u7528\u547d\u4ee4”\uff08\u4e24\u4e2a\u5355\u5f15\u53f7\uff09\u548c“(\u4e24\u4e2a\u53cd\u5f15\u53f7\uff0c\u5728\u952e\u76d8\u4e0a\u548c\u201d~\u201d\u5171\u7528\u4e00\u4e2a\u952e)\u53ef\u4ee5\u8fd4\u56de\u5230\u6700\u540e\u8df3\u8f6c\u7684\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c\u5f53\u524d\u5149\u6807\u4f4d\u4e8e\u6587\u4ef6\u4e2d\u7b2c1234\u884c\uff0c\u7136\u540e\u6211\u4f7f\u7528\u201d4321G\u201c\u547d\u4ee4\u8df3\u8f6c\u5230\u7b2c4321\u884c\uff1b\u8fd9\u65f6\u5982\u679c\u6211\u6309”\u6216“\uff0c\u5c31\u4f1a\u8df3\u56de\u52301234\u884c\u3002<\/p>\n \u56e0\u4e3a\u8fd9\u4e24\u4e2a\u547d\u4ee4\u4e5f\u5c5e\u4e8e\u8df3\u8f6c\u547d\u4ee4\uff0c\u6240\u4ee5\u7b2c4321\u884c\u4e5f\u88ab\u8bb0\u5165\u8df3\u8f6c\u8868\uff0c\u5982\u679c\u4f60\u518d\u6b21\u4f7f\u7528\u8fd9\u4e24\u4e2a\u547d\u4ee4\uff0c\u5c31\u4f1a\u53d1\u73b0\u81ea\u5df1\u53c8\u8df3\u56de\u7b2c4321\u884c\u4e86\u3002<\/p>\n \u8fd9\u4e24\u4e2a\u547d\u4ee4\u6709\u4e00\u70b9\u4e0d\u540c\uff0c“\u5728\u8df3\u8f6c\u65f6\u4f1a\u7cbe\u786e\u5230\u5217\uff0c\u800c”\u4e0d\u4f1a\u56de\u5230\u8df3\u8f6c\u65f6\u5149\u6807\u6240\u5728\u7684\u90a3\u4e00\u5217\uff0c\u800c\u662f\u628a\u5149\u6807\u653e\u5728\u7b2c\u4e00\u4e2a\u975e\u7a7a\u767d\u5b57\u7b26\u4e0a\u3002<\/p>\n \u800c CTRL-O \u547d\u4ee4\u5219\u8df3\u5230\u4e00\u4e2a “\u8f83\u8001” \u7684\u5730\u65b9 (\u63d0\u793a\uff1a O \u8868\u793a older)\u3002CTRL-I \u5219\u8df3\u5230\u4e00\u4e2a “\u8f83\u65b0” \u7684\u5730\u65b9<\/p>\n :jumps \u547d\u4ee4\u80fd\u8f93\u51fa\u4e00\u4e2a\u4f60\u53ef\u4ee5\u8df3\u5f80\u7684\u4f4d\u7f6e\u7684\u5217\u8868\u3002\u6700\u540e\u4e00\u4e2a\u4f60\u4f7f\u7528\u7684\u6807\u8bb0\u4f1a\u7528 “>” \u7b26\u53f7\u6807\u8bb0\u51fa\u6765\u3002<\/p>\n <\/p>\n \u6807\u8bb0<\/strong><\/p>\n Vim \u5141\u8bb8\u4f60\u5728\u6587\u672c\u4e2d\u653e\u7f6e\u81ea\u5b9a\u4e49\u7684\u6807\u8bb0\u3002\u547d\u4ee4 “ma” \u7528 a \u6807\u8bb0\u5f53\u524d\u7684\u5149\u6807\u4f4d\u7f6e<\/strong>\u3002\u4f60\u53ef\u4ee5\u5728\u6587\u672c\u4e2d\u4f7f\u7528 26 \u4e2a\u6807\u8bb0 (a \u5230 z)\u3002\u8fd9\u4e9b\u6807\u8bb0\u662f\u4e0d\u53ef\u89c1\u7684\uff0c\u53ea\u662f\u4e00\u4e2a\u7531 Vim \u8bb0\u4f4f\u7684\u4f4d\u7f6e\u3002<\/p>\n `{mark}\u8981\u8df3\u5230\u4e00\u4e2a\u4f60\u5b9a\u4e49\u7684\u6807\u8bb0\u6240\u5728\u884c\u5bf9\u5e94\u5217\uff08\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4f60\u6807\u8bb0\u5bf9\u5e94\u7684\u5149\u6807\u4f4d\u7f6e\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4 `{mark}\uff0c\u8fd9\u91cc {mark} \u662f\u6307\u5b9a\u4e49\u6807\u8bb0\u7684\u90a3\u4e2a\u5b57\u6bcd\u3002\u6240\u4ee5\uff0c\u79fb\u5230\u6807\u8bb0 a \u7684\u547d\u4ee4\u662f\uff1a `a<\/p>\n \u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4ee5\u5355\u5f15\u53f7\u5f00\u59cb\u7684\u8bed\u6cd5 ‘{mark}<\/em>\u662f\u8df3\u8f6c\u5230\u6807\u8bb0\u6240\u5728\u884c\u7684\u884c\u9996.<\/strong><\/p>\n \u5728\u540c\u4e00\u884c\u591a\u5217\u95f4\u8fdb\u884c\u79fb\u52a8\u65f6\u4f7f\u7528\u00a0`{mark}<\/em><\/strong>(\u53cd\u5f15\u53f7)\u4f1a\u975e\u5e38\u6709\u7528\u54e6\uff0c‘{mark}<\/em><\/strong>\uff08\u5355\u5f15\u53f7\uff09\u5c31\u65e0\u80fd\u4e3a\u529b\u4e86<\/p>\n \u5220\u9664mark\u7684\u547d\u4ee4\u662f\uff1adelmarks + markname<\/em><\/p>\n <\/p>\n \u4f60\u53ef\u4ee5\u7528\u5982\u4e0b\u547d\u4ee4\u53d6\u5f97\u6240\u6709\u7684\u6807\u8bb0\u7684\u5217\u8868\uff1a:marks<\/p>\n \u5230\u6709\u4e00\u4e9b\u7279\u6b8a\u7684\u6807\u8bb0\uff0c\u5305\u62ec\uff1a<\/p>\n ‘ \u8df3\u8f6c\u524d\u7684\u5149\u6807\u4f4d\u7f6e<\/p>\n ” \u6700\u540e\u7f16\u8f91\u7684\u5149\u6807\u4f4d\u7f6e<\/p>\n [ \u6700\u540e\u4fee\u6539\u7684\u5f00\u59cb\u4f4d\u7f6e<\/p>\n ] \u6700\u540e\u4fee\u6539\u7684\u7ed3\u675f\u4f4d\u7f6e<\/p>\n \u6ce8\uff1amark\u4ec5\u5728\u5f53\u524d\u6587\u4ef6\u8df3\u8f6c\u6709\u6548,jumps\u53ef\u5728\u591a\u4e2a\u6587\u4ef6\u4e4b\u95f4\u6765\u56de\u8df3\u8f6c<\/p>\n \u5176\u5b9e\u6807\u8bb0\u4e0d\u5355\u5728\u5149\u6807\u8df3\u8f6c\u65f6\u7528\u5230\uff0c\u5728\u5176\u4ed6\u64cd\u4f5c\u4e5f\u53ef\u4ee5\u7075\u6d3b\u8fd0\u7528\uff0c\u6bd4\u5982\u591a\u884c\u590d\u5236\uff1a “ay’b<\/em>\u547d\u4ee4\uff0c\u5373\u53ef\u4ee5\u5b9e\u73b0\u590d\u5236\u4ece\u5f53\u524d\u5149\u6807\u884c\u5230\u6807\u8bb0b\u6240\u5728\u884c\u5185\u5bb9\u5230\u5bc4\u5b58\u5668a<\/p>\n <\/p>\n \u5f15\u7528\u8d44\u6599\uff1a<\/strong><\/p>\n http:\/\/vimcdoc.sourceforge.net\/ \u8df3\u8f6c\u5217\u8868 \u5f53\u4f60\u7528 “G” \u547d\u4ee4\u8df3\u5230\u53e6\u4e00\u4e2a\u5730\u65b9\uff0cVim \u4f1a\u8bb0\u4f4f\u4f60\u4ece\u4ec0\u4e48\u5730\u65b9\u8df3\u8fc7\u53bb\u7684\u3002\u8fd9\u4e2a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[88,65,90,89],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1539"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1539"}],"version-history":[{"count":3,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1539\/revisions"}],"predecessor-version":[{"id":1542,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1539\/revisions\/1542"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nhttp:\/\/easwy.com\/blog\/archives\/advanced-vim-skills-advanced-move-method\/
\nhttp:\/\/bbs.chinaunix.net\/thread-1766056-1-1.html
\nhttp:\/\/blog.163.com\/lgh_2002\/blog\/static\/44017526201081154512135\/<\/p>\n","protected":false},"excerpt":{"rendered":"