2012年(18)
分类: LINUX
2012-04-07 01:25:59
description |
Overview The Most Recently Used (MRU) plugin provides an easy access to a list of recently opened/edited files in Vim. This plugin automatically stores the file names as you open/edit them in Vim. This plugin will work on all the platforms where Vim is supported. This plugin will work in both console and GUI Vim. This version of the MRU plugin needs Vim 7.0 and above. If you are using an earlier version of Vim, then you should use an older version of the MRU plugin. The recently used filenames are stored in a file specified by the Vim MRU_File variable. Usage To list and edit files from the MRU list, you can use the ":MRU" command. The ":MRU" command displays the MRU file list in a temporary Vim window. If the MRU window is already opened, then the MRU list displayed in the window is refreshed. If you are using GUI Vim, then the names of the recently edited files are added to the "File->Recent Files" menu. You can select the name of a file from this sub-menu to edit the file. You can use the normal Vim commands to move around in the MRU window. You cannot make changes in the MRU window. You can select a file name to edit by pressing the clicking the left mouse button on a file name. The selected file will be opened. If the file is already opened in a window, the cursor will be moved to that window. Otherwise, the file is opened in the previous window. If the previous window has a modified buffer or is the preview window or is used by some other plugin, then the file is opened in a new window. |