Just about all of the text editors on the Mac that are oriented towards web development have support for automatic sftp/ftp/scp of files to a server, so use that route. The virtualization tools also support sharing folders/directories with OS X, so you could use that path but since the eventual goal is deployment to another server using the sftp option means that going from testing to deployment consists of changing the name of the server you are pushing to.