Unable to edit using either vim or nano when multiple terminal sessions are opended

I cant append or edit the texts using vim and nano when multiple terminal sessions are opened.