https://github.com/lambdalisue/vim-mr
🎩 Small plugin to track MRU/MRW
https://github.com/lambdalisue/vim-mr
Last synced: 8 months ago
JSON representation
🎩 Small plugin to track MRU/MRW
- Host: GitHub
- URL: https://github.com/lambdalisue/vim-mr
- Owner: lambdalisue
- License: mit
- Created: 2020-05-31T12:44:45.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T18:09:26.000Z (over 1 year ago)
- Last Synced: 2025-02-05T02:45:02.734Z (11 months ago)
- Language: Vim Script
- Homepage:
- Size: 43 KB
- Stars: 34
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎩 vim-mr
_vim-mr_ (mr) is a plugin to asynchronously record MRU (Most Recently Used files), MRW (Most Recently Written files), MRR (Most Recent git Repositories), or MRD (Most Recent Directories).
### Function
Use `mr#mru#list()`, `mr#mrw#list()`, `mr#mrr#list()`, or `mr#mrd#list()` to list MRU/MRW/MRR/MRD like:
```
:echo mr#mru#list()
:echo mr#mrw#list()
:echo mr#mrr#list()
:echo mr#mrd#list()
```
If you want to delete a filename from each list:
```
:call mr#mru#delete("foo.txt")
:call mr#mrw#delete("foo.txt")
:call mr#mrr#delete("foo.txt")
:call mr#mrd#delete("foo.txt")
```
### Special thanks
The original idea of MRW comes from https://github.com/rbtnn/vim-mrw.