2015-10-15 72 views
3

我是Vim的新手。我發現瀏覽顯示幾個條目的舊文件(最近打開的70個文件)。有什麼方法可以控制我想要在「瀏覽舊文件」列表中看到的文件數量。如何顯示固定的Vim條目數瀏覽舊文件

我沒有檢查Vim的幫助,沒有提及如何控制條目數量?

:ol[dfiles]  List the files that have marks stored in the viminfo 
      file. This list is read on startup and only changes 
      afterwards with ":rviminfo!". Also see |v:oldfiles|. 
      The number can be used with |c_#<|. 
      {not in Vi, only when compiled with the |+eval| 
      feature} 

:bro[wse] ol[dfiles][!] 
      List file names as with |:oldfiles|, and then prompt 
      for a number. When the number is valid that file from 
      the list is edited. 
      If you get the |press-enter| prompt you can press "q" 
      and still get the prompt to enter a file number. 
      Use ! to abandon a modified buffer. |abandon| 
      {not when compiled with tiny or small features} 

回答

3

通過設置viminfo。因此,例如,設定最大的數,如70,以前編輯過的文件

set viminfo='70 

更多信息:h 'viminfo'

+1

謝謝。我錯過了幫助中的viminfo部分。 – Anit

相關問題