
我將 ack.vim 與 vim 一起使用。我在 vim 快速視窗中得到了我的搜尋結果,這很棒。唯一的問題是我必須按 [enter] 才能開啟快速視窗中顯示的檔案。就你了 ack.vimgithub網站說
在快速修復視窗中,您可以使用:
o to open (same as enter) go to preview file (open but maintain focus
on ack.vim results)
t to open in new tab T to open in new tab silently
q to close the quickfix window
但它們對我不起作用。我怎樣才能讓它發揮作用?
答案1
您確定您擁有最新版本的 Ack.vim 嗎?
我的版本很舊,所以這些映射對我不起作用(它們沒有在腳本中的任何位置設置,在最新版本中它們位於第 51 行左右)。
現在我已經安裝了最新版本,它們按照廣告的方式工作(除了使用時出現奇怪的空窗口T
)。