" lookupfile.vim: Lookup filenames by pattern " Author: Hari Krishna Dara (hari.vim at gmail dot com) " Last Change: 14-Jun-2007 @ 18:30 " Created: 11-May-2006 " Requires: Vim-7.1, genutils.vim(2.3) " Version: 1.8.0 " Licence: This program is free software; you can redistribute it and/or " modify it under the terms of the GNU General Public License. " See http://www.gnu.org/copyleft/gpl.txt " Download From: " http://www.vim.org//script.php?script_id=1581 " Usage: " See :help lookupfile.txt if exists('loaded_lookupfile') finish endif if v:version < 701 echomsg 'lookupfile: You need at least Vim 7.1' finish endif if !exists('loaded_genutils') runtime plugin/genutils.vim endif if !exists('loaded_genutils') || loaded_genutils < 203 echomsg 'lookupfile: You need a newer version of genutils.vim plugin' finish endif let g:loaded_lookupfile = 108 " Make sure line-continuations won't cause any problem. This will be restored " at the end let s:save_cpo = &cpo set cpo&vim if !exists('g:LookupFile_TagExpr') let g:LookupFile_TagExpr = '&tags' endif if !exists('g:LookupFile_LookupFunc') let g:LookupFile_LookupFunc = '' endif if !exists('g:LookupFile_LookupNotifyFunc') let g:LookupFile_LookupNotifyFunc = '' endif if !exists('g:LookupFile_LookupAcceptFunc') let g:LookupFile_LookupAcceptFunc = '' endif if !exists('g:LookupFile_MinPatLength') let g:LookupFile_MinPatLength = 4 endif if !exists('g:LookupFile_PreservePatternHistory') let g:LookupFile_PreservePatternHistory = 1 endif if !exists('g:LookupFile_PreserveLastPattern') let g:LookupFile_PreserveLastPattern = 1 endif if !exists('g:LookupFile_ShowFiller') let g:LookupFile_ShowFiller = 1 endif if !exists('g:LookupFile_AlwaysAcceptFirst') let g:LookupFile_AlwaysAcceptFirst = 0 endif if !exists('g:LookupFile_FileFilter') let g:LookupFile_FileFilter = '' endif if !exists('g:LookupFile_AllowNewFiles') let g:LookupFile_AllowNewFiles = 1 endif if !exists('g:LookupFile_SortMethod') let g:LookupFile_SortMethod = 'alpha' endif if !exists('g:LookupFile_Bufs_BufListExpr') let g:LookupFile_Bufs_BufListExpr = '' endif if !exists('g:LookupFile_Bufs_SkipUnlisted') let g:LookupFile_Bufs_SkipUnlisted = 1 endif if !exists('g:LookupFile_Bufs_LikeBufCmd') let g:LookupFile_Bufs_LikeBufCmd = 1 endif if !exists('g:LookupFile_UsingSpecializedTags') let g:LookupFile_UsingSpecializedTags = 0 endif if !exists('g:LookupFile_DefaultCmd') let g:LookupFile_DefaultCmd = ':LUTags' endif if !exists('g:LookupFile_EnableRemapCmd') let g:LookupFile_EnableRemapCmd = 1 endif if !exists('g:LookupFile_DisableDefaultMap') let g:LookupFile_DisableDefaultMap = 0 endif if !exists('g:LookupFile_UpdateTime') let g:LookupFile_UpdateTime = 300 endif if !exists('g:LookupFile_OnCursorMovedI') let g:LookupFile_OnCursorMovedI = 0 endif if !exists('g:LookupFile_EscCancelsPopup') let g:LookupFile_EscCancelsPopup = 1 endif if !exists('g:LookupFile_SearchForBufsInTabs') let g:LookupFile_SearchForBufsInTabs = 1 endif if !exists('g:LookupFile_TagsExpandCamelCase') let g:LookupFile_TagsExpandCamelCase = 1 endif if !exists('g:LookupFile_RecentFileListSize') let g:LookupFile_RecentFileListSize = 20 endif if (! exists("no_plugin_maps") || ! no_plugin_maps) && \ (! exists("no_lookupfile_maps") || ! no_lookupfile_maps) noremap