sponsor Vim development Vim logo Vim Book Ad

WinFastFind : Fast replacement for vim "find" in windows

 script karma  Rating 4/3, Downloaded by 649  Comments, bugs, improvements  Vim wiki

created by
Venkateswara Rao Mandela
 
script type
utility
 
description
I work on Windows at work. I have frequently found the "find" command on Vim to
lag when the "path" variable is set to recurse through a large directory. This
is my attempt to solve this problem.

I am using an external filename search tool called "Everything" along with a
sed script to find for files by name from VIM.
 
install details
Install the plugin using the VimBall.

To use this plugin, you need the below external tools. All of them are free.
Except for Perl, all of them have installers in KB.

1. Perl - I use strawberry perl but any other version of Perl should work as
well. There is no dependency on any perl modules.

http://strawberryperl.com/

2. Sed - I use sed from GnuWin32 on my system.

http://gnuwin32.sourceforge.net/packages/sed.htm

3. Everything - This is a windows file name search tool available from
http://www.voidtools.com/Everything-1.2.1.371.exe

4. Everything command line Interface - This is a command line to obtain search
results from Everything database.  

http://www.voidtools.com/es.exe

After installing the above tools, ensure that Perl,sed and es.exe are present
in the system path. This can be verified by running.

1. Perl -v
2. sed --help
3. es --help

Once the external tools are setup, install the plugin using the Vimball or the
zip file. The plugin currently consists of three files.

plugin\WinFastFind.vim
plugin\handlesubsts.pl
doc\WinFastFind.txt


Usage Instructions
------------------

1. Set the path to include the directories you want to search. The plugin
searches these directories recursively. It is not necessary to add the ** at
the end of the path to indicate recursion.

2. use

:Ff <search string>

to find the files. The search string can be part of the file name or part of the path.

3. If there is a unique match, it is opened for editing. If there are multiple matches, a list of files is opened for selection.

For more usage instructions, please refer to the documentation.

Source Code
-----------

The source code is available at

https://github.com/vmandela/WinFastFind
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
WinFastFind-v1.0.vba 1.0 2011-06-21 7.0 Venkateswara Rao Mandela Initial upload
ip used for rating: 44.211.239.181

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github