hmm, why did you remove the file to be compiled here (main.nim)?

generally, --track:file is not sufficient to indicate which file should be compiled. The reason for this are included files that can appear as a track parameter, but must be compiled though the file that includes them. nimrod.vim has a work-around for this problem by looking for a comment # included from X somewhere in the fie.