sponsor Vim development Vim logo Vim Book Ad

GotoFileArg.vim : Jump right to file in arg list by name, substr, regex

 script karma  Rating 0/0, Downloaded by 404  Comments, bugs, improvements  Vim wiki

created by
B Hechinger
 
script type
utility
 
description
GotoFileArg.vim v0.9b

Mostly for those who load up VIM with a lot of files at once in the arg list.
When jumping around in files, this allows you to jump right to a file, by a
substring/regex of the filename.  It repositions VIM in the arg list so
subsequent :n :N commands work from the actual location of the file.

At present it also maps esc-f as the keystroke to type the filename in.
(esc-f is alt-f / meta1-f on my system, and many others).

Features:
  * Filename match is done using "=~" so a substring / regex are fine
  * Last pattern is remembered
  * If the current filename matches, the search, as one would expect, begins
at the next file, and wraps.
 
install details
Place file in your plugins dir.
I place it at: ~/.vim/plugin/GotoFileArg.vim
 

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
GotoFileArg.vim 0.9b 2007-01-01 5.7 B Hechinger Initial upload
ip used for rating: 18.222.121.170

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