Vim Tips Wiki


Revision as of 19:50, August 1, 2012 by (Talk)

1,619pages on
this wiki

Use this page to discuss script 521 mru: manage Most Recently Used (MRU) files

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


It would be nice if mru could replace long paths in filenames with short names. For example, after I edit the file /home/user/projects/00_my/tasks/22-validation-rules/repo-1.03/dbscripts/some/more/paths/to/a.txt and go to the MRU filelist, I cannot see the whole filename because it is too long.

I'd like to be able to define an environment variable, e.g.


and configure a variable like mru_prefixes=dbscripts in vimrc. Afterwards, MRU could display the file as


--November 15, 2011

Please could you clarify the license of this plugin? Would you be open to allowing me to use your code as a basis of another vim plugin (I would give credit) --April 28, 2012


If I call :MRU for first time, It gives me the following error message:

 Error detected while processing <SNR>29_MRU_Cmd..<SNR>29_MRU_Open_Window:
 line 125:
 E21: Cannot make changes, 'modifiable' is off:     $delete
 Press Enter or type command to continue

If I press enter, __MRU_Files__ is empty. If I call :MRU again, it works.

--August 1, 2012

Around Wikia's network

Random Wiki