Create the MODULENAME.views_default.inc file (replace MODULENAME with the name of your module), and copy the exported code in the implementation of hook_views_default_views()
you write in that file.
For example, the Views module implements node_views_default_views()
for the Node module. The relevant parts for the front page view are the following ones.
$views = array();
// Omissis
$view = new view;
$view->name = 'frontpage';
$view->description = 'Emulates the default Drupal front page; you may set the default home page path to this view to make it your front page.';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Front page';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
// Omissis
$views['frontpage'] = $view;
The hook then returns the content of $views
.
If the view has not been overwritten by a user, it should not be shown in the view list, once the module implementing the hook is uninstalled.