diff --git a/core/.gitignore b/core/.gitignore
index 74b6a4c..8486f58 100644
--- a/core/.gitignore
+++ b/core/.gitignore
@@ -1,19 +1,2 @@
-# SimpleTest breaks with the following files, so avoid adding them.
-vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services1-1.php
-vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/Fixtures/php5.4/traits.php
-vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services11.php
-
-# The resources for the Validator component are not required.
-vendor/symfony/validator/Symfony/Component/Validator/Resources
-
-# Symfony Validator depends on Symfony Translation but only requires the
-# TranslatorInterface. Thus, we add only the required interface from Symfony
-# Translation by ignoring everything except the interface.
-vendor/symfony/translation/Symfony/Component/Translation/*
-!vendor/symfony/translation/Symfony/Component/Translation/TranslatorInterface.php
-
-# PHPUnit provides some binary dependencies that are already available.
-vendor/phpunit/phpunit/build/dependencies
-
-# The PHAR file below contains CRLF characters that cause a problem with PIFR.
-vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectWithXsdExtensionInPhar.phar
+# Ignore vendor directory.
+vendor
diff --git a/example.gitignore b/example.gitignore
index e2f0124..e0410f5 100644
--- a/example.gitignore
+++ b/example.gitignore
@@ -11,6 +11,9 @@
 # core
 # vendor
 
+# Only ignore core's Composer dependencies.
+core/vendor
+
 # Ignore configuration files that may contain sensitive information.
 sites/*/settings*.php
 sites/*/services*.yml
