https://github.com/yegappan/mru
Most Recently Used (MRU) Vim Plugin
https://github.com/yegappan/mru
Last synced: about 2 months ago
JSON representation
Most Recently Used (MRU) Vim Plugin
- Host: GitHub
- URL: https://github.com/yegappan/mru
- Owner: yegappan
- License: other
- Created: 2013-09-01T00:13:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T15:03:19.000Z (about 1 year ago)
- Last Synced: 2025-01-19T10:21:37.317Z (about 1 year ago)
- Language: Vim Script
- Size: 206 KB
- Stars: 261
- Watchers: 10
- Forks: 49
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vim - MRU
README
 
# Most Recently Used (MRU) Vim plugin
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 works with both Vim and Neovim and will work on all the platforms
where Vim/Neovim are supported. This plugin will work in both console and GUI
Vim. This version of the MRU plugin needs Vim 7.0 and above.
## Installation
You can install this plugin by downloading the .zip or the .tar.gz file for the latest MRU release from the following page:
https://github.com/yegappan/mru/releases/latest
For Vim 8.0 and above, you can expand the .zip file in the following directory (on Unix/Linux/MacOS systems):
$ mkdir -p $HOME/.vim/pack/downloads/start/mru
$ cd $HOME/.vim/pack/downloads/start/mru
$ unzip
For Vim 7.4 and before, you can use the following steps (on Unix/Linux/MacOS systems):
$ mkdir $HOME/.vim
$ cd $HOME/.vim
$ unzip
You can also install this plugin directly from github using the following steps (for Vim 8.0 and above):
$ mkdir -p $HOME/.vim/pack/downloads/start/mru
$ cd $HOME/.vim/pack/downloads/start
$ git clone https://github.com/yegappan/mru
For NeoVim:
$ mkdir -p $HOME/.config/nvim/pack/downloads/start/mru
$ cd $HOME/.config/nvim/pack/downloads/start
$ git clone https://github.com/yegappan/mru
or you can use any one of the Vim plugin managers ([vim-plug](https://github.com/junegunn/vim-plug), [dein.vim](https://github.com/Shougo/dein.vim), [pathogen](https://github.com/tpope/vim-pathogen), [minpac](https://github.com/k-takata/minpac), [vam](https://github.com/MarcWeber/vim-addon-manager), [volt](https://github.com/vim-volt/volt), [Vundle](https://github.com/VundleVim/Vundle.vim), etc.) to install and manage this plugin.
## Usage
After the plugin is installed, it will automatically start to record the names of all the recently used files in the `$HOME/.vim_mru_files` text file.
To open a file from the recently used file list, enter the following command:
:MRU
This will open a temporary window with the list of file names in the MRU list where you can press `` to open a file.
You can fuzzy search a text in the list of file names, by passing a search text to the `:MRU` command:
:MRU
This will open the MRU window with only the file names fuzzy matching the supplied search string.
The user manual is available at:
https://github.com/yegappan/mru/wiki/User-Manual