This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
forked from vim-scripts/gitignore
-
Notifications
You must be signed in to change notification settings - Fork 0
Set 'wildignore' from ./.gitignore
License
scrosland/gitignore
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2557 Another one from StackOverflow. It will read your .gitignore file from the directory where you launch vim and parse it, transforming its format into one suitable for wildignore, and then set that option. Thus, tab-completion won't present those files as options when using vim commands that expect a filename. Limitations: * This will read the .gitignore file from the directory where you launch vim. No effort is made to look for other .gitignore files and parse them. Alternatively, you could specify an absolute path to a file on the first line. * The wildignore option in vim doesn't support the notion of negating ignores like you can in a .gitignore file. That is, you can't say :set wildignore=*.html,!foo.html to have it ignore all html files except foo.html. Therefore, .gitignore lines that start with ! are simply ignored.
About
Set 'wildignore' from ./.gitignore
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Vim Script 100.0%