Skip to content

arp242/globedit.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is considered finished

Add variants of :edit and friends that can take a globbing pattern to open multiple files:

:Edit plugin/*.vim doc/*.doc
:Split ??_*.c

See :help wildcards for a overview of the globbing patterns interpreted by Vim.

Compare this to the default behaviour of :edit *.vim, which will either:

  • open a file named *.vim if there are no matches;
  • open the file if there is exactly one match;
  • error out with E77: Too many file names if there are more than one matches.

Based on my answer here, which also lists some other solutions.

By default it'll map :Edit, :Tabedit, :Read, :Split, and :Vsplit. You can use :cabbr tabe Tabe etc. to use it automatically.

See :help globedit for the full documentation.

About

Use globbing patterns for :edit, :tabedit, etc.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published