Fix resource opening. Ignore swp files.