Permalink
Browse files

Enable configuration via g:tmru_world (fixes #31)

  • Loading branch information...
1 parent 60e08b9 commit 35326d0834a8b6c48562bf3623e5f3e45764fc34 @tomtom committed Jan 22, 2013
Showing with 7 additions and 3 deletions.
  1. +4 −1 autoload/tmru.vim
  2. +3 −2 doc/tmru.txt
View
5 autoload/tmru.vim
@@ -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
@@ -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
View
5 doc/tmru.txt
@@ -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

0 comments on commit 35326d0

Please sign in to comment.