-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
66 lines (42 loc) · 2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 sessions
Files 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 list
If 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 <m-r> :Tmru<cr>
Dependencies:
tlib (>= 1.27) :: https://github.com/tomtom/tlib_vim
License: GPLv3 or later