try eclipse. most awesome editor anyone has ever known. and i think editing via ftp is also possible.
can you just do a ping -t onto your ftp server? it will keep the connection alive.
ah and winscp actually can do this too. you just have to define your own editor to use.