Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable configuration via g:tmru_world (fixes #31)
  • Loading branch information
tomtom committed Jan 22, 2013
1 parent 60e08b9 commit 35326d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion autoload/tmru.vim
Expand Up @@ -3,7 +3,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2011-04-10.
" @Last Change: 2012-11-29.
" @Revision: 68
" @Revision: 69


if !exists('g:tmru#world') "{{{2
Expand Down Expand Up @@ -35,6 +35,9 @@ if !exists('g:tmru#world') "{{{2
call add(g:tmru#world.key_handlers,
\ {'key': 21, 'agent': 'tmru#UnsetPersistent', 'key_name': '<c-u>', 'help': 'Unset a file''s persistent mark'})
endif
if !empty(g:tmru_world)
let g:tmru#world = extend(g:tmru#world, g:tmru_world)
endif
endif


Expand Down
5 changes: 3 additions & 2 deletions doc/tmru.txt
Expand Up @@ -14,9 +14,10 @@ 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
~/vimfiles/after/plugin/tmru.vim: >
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 :TRecentlyUsedFiles, you
Expand Down

0 comments on commit 35326d0

Please sign in to comment.