sponsor Vim development Vim logo Vim Book Ad

mruex : Explore your most recently used (MRU) files

 script karma  Rating 54/26, Downloaded by 1847    Comments, bugs, improvements  Vim wiki

created by
Ajit Thakkar
 
script type
utility
 
description
mruex.vim maintains a list (in a file called mrulist) of your most recently used files. mruex.vim presents an explorer-like interface to mrulist so that you can easily open your MRU files. Duplicates and files that are no longer readable are pruned from mrulist whenever an entry is added to mrulist. If you have several instances of Vim running simultaneously, each update to the mrulist becomes available immediately in all the Vim instances.

Usage:
A mrulist window is opened by the command :RSplit or <Leader>r where <Leader> is \ by default. Five commands are available in the mrulist window:
Key         Action:
h              Toggle help
Enter       Open file
o              Open file in new window
d              Delete entry (not file)
q              Close mrulist window

Customization is done via five Vim variables. mruex_key (default '<Leader>r') is the key to open the mrulist window, mruex_win_height (default 6) is the height of the mrulist window, mruex_max_entries (default 20) is the maximum number of MRU file names to keep in mrulist excluding duplicates, mruex_type (default 'w') controls the meaning of most recently used. 'w' indicates: Add file to mrulist whenever it is written (saved) to disk. 'e' indicates: add file to mrulist whenever it is entered, and mruex_filter (default '') is a Vim regular expression defining files to be excluded from the mrulist. mruex_relative =1 or 0 determines  whether or not the file paths in the mrulist are relative to $HOME.
The default is mruex_relative=1 for unix systems and 0 for others.
Examples:
let mruex_filter='d:\\temp\'
in your vimrc excludes files in the d:\temp\ directory from the mrulist.
let mruex_key='<f3>'
in your vimrc sets F3 as the key that opens the mrulist window.
 
install details
Just place this file in $HOME\vimfiles\plugin for MSWindows or $HOME/.vim/plugin for Unix. The mrulist file will be created in $HOME\vimfiles or $HOME/.vim respectively. mruex.vim requires Vim 6.0 (or later) run with "set nocompatible" in the vimrc.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mruex.vim 1.4 2003-05-07 6.0 Ajit Thakkar As requested by some MSWindows users, the default behavior has been changed to use full file paths in the mrulist except for Unix systems where file paths are made relative to $HOME. A new global variable, mruex_relative, lets you modify this behavior to suit your needs.
mruex.vim 1.3 2003-04-03 6.0 Ajit Thakkar Restore numbered registers after MruUpdate (Ivan Tarasov). Use has("patch...") etc. to automatically include enhancements that depend on patches to vim6.1
ip used for rating: 54.91.120.148

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo