{"id":1906,"date":"2012-08-14T21:30:59","date_gmt":"2012-08-14T13:30:59","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=1906"},"modified":"2013-11-21T18:28:51","modified_gmt":"2013-11-21T10:28:51","slug":"vim%e7%9a%84bufexplorer-vim%e6%8f%92%e4%bb%b6%e5%9c%a8%e5%88%87%e6%8d%a2%e6%96%87%e4%bb%b6%e6%97%b6%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1906.html","title":{"rendered":"VIM\u7684bufexplorer.vim\u63d2\u4ef6\u5728\u5207\u6362\u6587\u4ef6\u65f6\u62a5\u9519"},"content":{"rendered":"<p>\u73b0\u8c61\u4e3a\u5728\u5207\u6362\u6587\u4ef6\u6216tab\uff0c\u5728NERD_tree\u4e0e\u7f16\u8f91\u533a\u5207\u6362\u65f6\uff0c\u5f39\u51fa\u4e00\u4e2a\u5982\u56fe\u7684\u9519\u8bef\uff1a<a href=\"https:\/\/kyle.ai\/blog\/wp-content\/uploads\/2012\/08\/f7ffdb638535e5ddc08f0c4876c6a7efcf1b6240.png\"><img loading=\"lazy\" decoding=\"async\" title=\"f7ffdb638535e5ddc08f0c4876c6a7efcf1b6240\" src=\"https:\/\/kyle.ai\/blog\/wp-content\/uploads\/2012\/08\/f7ffdb638535e5ddc08f0c4876c6a7efcf1b6240.png\" alt=\"\" width=\"702\" height=\"482\" \/><\/a><\/p>\n<p>\u5904\u7406 function &lt;SNR&gt;32_BEActivateBuffer \u65f6\u53d1\u751f\u9519\u8bef<br \/>\n\u7b2c 18 \u884c\uff1a<br \/>\nE684\uff1aList \u7d22\u5f15\u8d85\u51fa\u8303\u56f4\uff1a2<\/p>\n<p>\u7528\u82f1\u8bed\u641c\u7d22 vim ActivateBuffer E684 \u7b49\u4fe1\u606f\uff0c\u67e5\u51fa\u662f\u63d2\u4ef6 bufexplorer \u7684\u95ee\u9898\uff0c\u4f46\u662f\u5df2\u7ecf\u786e\u8ba4\u5b89\u88c5\u662f\u6700\u65b0\u7684\u3002<\/p>\n<p>\u627e\u5230\u4e86\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5(http:\/\/c9s.blogspot.com\/2012\/07\/patch-for-bufexplorervim.html)\uff1a<\/p>\n<pre class=\"brush: diff; title: ; notranslate\" title=\"\">\r\ndiff --git a\/plugin\/bufexplorer.vim b\/plugin\/bufexplorer.vim\r\nindex 8791363..6024bf7 100644\r\n--- a\/plugin\/bufexplorer.vim\r\n+++ b\/plugin\/bufexplorer.vim\r\n@@ -183,7 +183,10 @@ function! s:BEActivateBuffer()\r\n   elseif empty(l) || index(l, b) == -1\r\n     &quot; Add new buffer to this tab buffer list\r\n     let l = add(l, b)\r\n-    let s:tabSpace&#x5B;tabpagenr()] = l\r\n+\r\n+    &quot; note: it will be out of range\r\n+    &quot; original solution: let s:tabSpace&#x5B;tabpagenr()] = l\r\n+    call add(s:tabSpace, l )\r\n     if g:bufExplorerOnlyOneTab == 1\r\n       &quot; If a buffer can only be available in 1 tab page\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u8c61\u4e3a\u5728\u5207\u6362\u6587\u4ef6\u6216tab\uff0c\u5728NERD_tree\u4e0e\u7f16\u8f91\u533a\u5207\u6362\u65f6\uff0c\u5f39\u51fa\u4e00\u4e2a\u5982\u56fe\u7684\u9519\u8bef\uff1a \u5904\u7406 function &#038; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1906","post","type-post","status-publish","format-standard","hentry","category-diary"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1906"}],"version-history":[{"count":4,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1906\/revisions"}],"predecessor-version":[{"id":5021,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1906\/revisions\/5021"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}