If associate multimedia files to VLC media player, you can find quite irritating that every time you want to watch a video, a new window opens, i.e. a new instance of VLC is created.
To avoid this, you can write a simple bash script that forces any existing instance of VLC to quit and opens a new one. Then you can associate the script with multimedia files.
Let's call this script onevlc:
#!/bin/bash killall vlc exec vlc "$@"
Make the script executable, changing its permissions: chmod 755 onevlc.
If you have root privileges, you may place the script in the /usr/bin directory.