I've followed How to create views programmatically in Drupal 8, but as I asked in this topic, my view doesn't appear in my list.
When I install my module twice (Enable -> Uninstall -> Enable), I have an error:
Configuration object
views.views.viewsname
already exist
I also tried to import it directly in Drupal, copied the exact same code and this worked.