tmru : Most Recently Used Files
| script karma |
Rating 12/5,
Downloaded by 1523
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Tom Link |
| |
| script type |
| utility |
| |
| description |
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.
:TRecentlyUsedFiles ... open one or more recently used file(s)
:TRecentlyUsedFilesEdit ... 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.
|
| |
| install details |
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.
vimscript #1863 is required.
Copy tmru.vim to ~/.vim/plugin/
Suggested keymaps (put something like this into ~/.vimrc):
noremap <m-r> :TRecentlyUsedFiles<cr>
In order to disable the sub-menu, set g:tmruMenu to "" in your vimrc file.
|
| |
script versions (upload new version)
Click on the package to download.
| tmru.vba |
1.00 |
2012-12-13 |
7.0 |
Tom Link |
- Use tlib#persistent - Error when the list of recently used files was empty - Handle multiple running instances of vim (fixes #23) - s:MruRetrieve(...): call tlib#persistent#Get() only once - TMRU: Alias for |:TRecentlyUsedFiles|. - Removed support for metadata (which was broken anyway) - on edit ignore swap file exists error + use v:exception for other errors - Set g:tmruSize dependent on whether viminfo is used - File properties again (only if viminfo is not used) - Mark files as persistent/sticky (i.e. the won't be removed from the list) - Fix problem on windows (val -> v:val) - Normalize filenames when registering a buffer; minor improvements - Improved synchronization of mru lists across multiple instances of vim (fixes #26) - Mark sticky filenames with "s" - g:tmru_drop - Renamed g:tmru_single_child_mode to g:tmru_single_instance_mode - Filename indicators (s for sticky files; requires tlib 1.04) - Name buffer __TMRU__ - s:SelectMRU(): Don't use s:FindIndex() and make sure to use the currect mru list (fixes #27) - Make sure to save the file list when removing outdated files - Make sure to save the mru list when it has been modified upon the user's request - Re-introduced :TRecentlyUsedFilesSessions command. - Code reorganization - Fix use of relative filenames (closes #29) - Don't simply record a file's latest session but every session it was in - g:tmru_sessions = 9 - Make sure to register file's that are already opened when tmru is loaded MD5 checksum: 82ed5a7b285c6ca1ec7bd0a2d5795039 |
| tmru.vba |
0.10 |
2012-01-27 |
7.0 |
Tom Link |
- .gitignore - Don't check for has('vim_starting') - EditMRU(): Save the new, not the old list - Fix g:tmruExclude default for '+shellslash'. - Attempt at canonical filenames on Windows. - Merge branch 'canonical' - tmruExclude, s:PS: use temporary script-local variable - Also exclude *.tmp and COMMIT_EDITMSG (suggested by blueyed) - Ignore `git-rebase-todo` and `quickfix` by default. - Make filename relative to home dir. - Fix CheckFilenames. - Expand() filename in CanonicalizeFilename for "~". - Optimize performace with MruRetrieve. - Deactivate `:~` modification; performance reasons. - Use `substitute` instead of `fnamemodify`. - s:MruRetrieve(): Use single quotes - Do not split &suffixes on escaped comma. - Remove duplicates in CheckFilenames. - Use unlet() instead of keys() to remove dupes. - Exclude 'fugitive:' files by default. - Fix g:tmruExclude default pattern. - Normalization of entries in CheckFilenames. - g:tmruEvents is a dictionary now (was a string) - Some optimizations with respect to when the list should be saved - Experimental: Maintain some metadata - :TMRUSession command - Undo some over-engineering :-), fixes #14 - s:CheckFilenames(): Also remove metadata when removing a dupe - Fix setup of g:TMRU_METADATA; undefined "mru". - s:MruRegister(): also remove metadata when removing an item - disabled sessions - Moved function s:MruRegister() - Added BufDelete to g:tmruEvents - s:AutoMRU() takes event argument - g:tmru_debug - g:tmru_check_disk (fixes #20) - tmru#DisplayUnreadableFiles(mru) MD5 checksum: 7c61e5342a1551f30a2d61fd7dd4965e |
| tmru.vba |
0.9 |
2010-11-01 |
7.0 |
Tom Link |
Please see http://github.com/tomtom/tmru_vim/commits/master/ MD5 checksum: 0b6a19a9e793340f26616209e058606e |
| tmru.vba.gz |
0.7 |
2009-03-11 |
7.0 |
Tom Link |
If viminfo doesn't include '!', then use tlib#cache to save the file list. |
| tmru.vba.gz |
0.6 |
2008-12-02 |
7.0 |
Tom Link |
- g:tmruEvents can be configured (eg. BufEnter)
- Require tlib 0.28
|
| tmru.vim |
0.5 |
2007-10-12 |
7.0 |
Tom Link |
- Don't escape backslashes for :edit |
| tmru.vim |
0.4 |
2007-09-11 |
7.0 |
Tom Link |
- <c-w> ... View file in original window
- <c-i> ... Show file info
- <c-t> ... Show in tab
- Require tlib >= 0.13
|
| tmru.vim |
0.3 |
2007-07-17 |
7.0 |
Tom Link |
- Autocmds use expand('%') instead of expand('<afile>')
- Build menu (if the prefix g:tmruMenu isn't empty)
- Key shortcuts to open files in (vertically) split windows or tabs
- Require tlib >= 0.9
|
| tmru.vim |
0.2 |
2007-05-15 |
7.0 |
Tom Link |
- :TRecentlyUsedFilesEdit
- Don't register nofile buffers or buffers with no filename.
- <c-c> copy file name(s) (to @*)
- When !has('fname_case'), ignore case when checking if a filename is
already registered.
|
| tmru.vim |
0.1 |
2007-04-18 |
7.0 |
Tom Link |
Initial upload |
ip used for rating: 50.16.108.167
|