Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomtom/tmru_vim
Most Recently Used Files in Vim
https://github.com/tomtom/tmru_vim
vim vim-plugin viml
Last synced: 10 days ago
JSON representation
Most Recently Used Files in Vim
- Host: GitHub
- URL: https://github.com/tomtom/tmru_vim
- Owner: tomtom
- License: gpl-3.0
- Created: 2010-08-20T16:26:26.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T10:26:22.000Z (over 5 years ago)
- Last Synced: 2023-10-20T23:31:36.752Z (about 1 year ago)
- Topics: vim, vim-plugin, viml
- Language: Vim script
- Homepage: http://www.vim.org/scripts/script.php?script_id=1864
- Size: 166 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README
- Changelog: CHANGES.TXT
- License: LICENSE.TXT
Awesome Lists containing this project
README
This plugin allows users to open recently used files. Users can filter
the file list by typing a pattern. Users can open multiple files at
once. The list of recently used files is synchronized across multiple
instances of (g)vim running simultaneously.By default, tmru will remember 500 files (see |g:tmruSize|) accessible
via the `:Tmru` command. The list can be easily filtered. Users can
optionally use fuzzy patterns, which is not enabled by default though
(see |g:tlib#input#filter_mode|).Files can be grouped in sessions:
- Use named sessions to group files that are frequently edited
together
- Use numbered sessions to open files you edited during one of the
latest editing sessionsFiles can be marked as "sticky" -- they will never be removed from the
list.`:Tmru` ... open one or more recently used file(s)
`:Tmruedit` ... edit the mru listIf viminfo contains "!", the data is stored as global variable. Otherwise,
tlib#cache is used -- which saves the data in `${vimfiles}/cache/tmru/files`
by default.By default tmru matches the search pattern on the full filename. If
you want to match on the basename, add the following to your |.vimrc|
file: >let g:tmru_world = {}
let g:tmru_world.filter_format = 'fnamemodify(%s, ":t")'If you want to retain the last filter between calls of `:Tmru`, you
could also add the following lines: >let g:tmru_world.cache_var = 'g:tmru_cache'
let g:tmru_world.restore_from_cache = ['filter']-----------------------------------------------------------------------
Install~Edit the vba file and type: >
:so %
See :help vimball for details. If you have difficulties or use vim 7.0,
please make sure, you have the current version of vimball
(vimscript #1502) installed or update your runtime.This script requires tlib (vimscript #1863) to be installed.
Suggested maps (to be set in ~/.vimrc): >
noremap :TmruDependencies:
tlib (>= 1.27) :: http://github.com/tomtom/tlib_vimLicense: GPLv3 or later