FWIW TurnKey only provides vim-tiny so IMO the first thing I do is to install proper vim. OTOH I'm a Linux guy and find most IDEs sluggish and distracting. I much prefer to just use vim from the commandline for development. But YMMV...
So short answer is that Samba is a totally legitimate option. There are lots of other (better IMO) options too.
Despite Samba being a legitimate option, my inclination is to adjust your host OS to work nicely with TurnKey (and Linux in general), rather than adjusting TurnKey to work nicely with your host OS. My rational is that then your host OS will integrate with any TurnKey (and/or Linux) instance you launch OOTB. It makes VMs much more disposable which IMO is the way it should be...
IMO the way to go would be to install SSHFS and then mount the remote directory via SSHFS. For Mac and Linux that should be fairly straight forward. If you have Windows, then have a look here. TBH I haven't used it since Win7 some time ago, but it worked quite well (occasional crashes on waking from sleep). My suspicion is that it'd be even better now...
Alternatively, back when I used to use Windows lots, I used Notepad++ with the SFTP extension. IIRC there was a config option to auto sync when files are saved. So you still need to save, but then the file auto syncs. Perhaps the SFTP extensions for your IDE can be configured the same? If not, it's probably worth forwarding it as a feature request.
IMO the "better way" is to ssh in and install "proper" vim! :)
So short answer is that Samba is a totally legitimate option. There are lots of other (better IMO) options too.
Despite Samba being a legitimate option, my inclination is to adjust your host OS to work nicely with TurnKey (and Linux in general), rather than adjusting TurnKey to work nicely with your host OS. My rational is that then your host OS will integrate with any TurnKey (and/or Linux) instance you launch OOTB. It makes VMs much more disposable which IMO is the way it should be...
IMO the way to go would be to install SSHFS and then mount the remote directory via SSHFS. For Mac and Linux that should be fairly straight forward. If you have Windows, then have a look here. TBH I haven't used it since Win7 some time ago, but it worked quite well (occasional crashes on waking from sleep). My suspicion is that it'd be even better now...
Alternatively, back when I used to use Windows lots, I used Notepad++ with the SFTP extension. IIRC there was a config option to auto sync when files are saved. So you still need to save, but then the file auto syncs. Perhaps the SFTP extensions for your IDE can be configured the same? If not, it's probably worth forwarding it as a feature request.