As a plugin that was voted "life changing" by the vast majority of users on http://www.vim.org/, it really changed our lives. A brief introduction to what is Lookupfile: a vim plugin that not only makes it extremely efficient to find files, but also looks in open buffers, finds files by directory, and so on. Ready to download: (The following website needs FQ, will not be able to ask) Lookupfile plugin can be downloaded in the following link: http://www.vim.org/scripts/script.php?script_id=1581 after downloading the plugin, Unzip it into your ~/.vim directory and complete the installation. Then execute the ": Helptags ~/.vim/doc" command in vim, generate the Help file index, and then you can use the ": Helps Lookupfile" command to view the Lookupfile plugin's helper file. The Lookupfile plugin also requires the latest genutils support, so you need to download genutils:http://www.vim.org/scripts/script.php?script_id=197 This plugin provides some common functions , which can be used by other scripts. Its installation method is also in the ~/.vim directory decompression can be. It is important to note that the latest version of Genutils uses a new automatic loading method, so it is incompatible with the previous version. If your other plugins need to use the old version of Genutils, you need to refer to the Genutils instructions to configure, so that the old and new two versions can work together OK, plug-in installation, the configuration: "" "" "" "" "" "" "" "" "" "" "" "" "" Lookupfile setting "" "" "" "" "" "" "" "" "" "" "" "" "" "Let G:lookupfile_minpatlength = 2" Enter a minimum of 2 characters before starting to look up to get G:looku Pfile_preservelastpattern = 0 "Do not save last found string let G:lookupfile_preservepatternhistory = 1" Save Find history let G:lookupfile_a Lwaysacceptfirst = 1 "Enter to open the first matching item let G:lookupfile_allownewfiles = 0 "Do not allow creation of nonexistent files if Filereadable ("./filenametags ")" Set the name of the tag file let g:lookupfile_tagexpr = ' "./filenametags "' endif" mapping lookupfile for, Lknmap <silent> <leader>lk:LUTags<cr> "Mapping Lubufs to, Llnmap <silent> < Leader>ll:lubufs<cr> "Map luwalk for, Lwnmap <silent> <leader>lw:LUWalk<cr>
Vim plugin-lookupfile