sftp - vim save to remote server on write -


i'm trying enable sublime text sftp package saving on write vim, proving more difficult thought.

i did manage find solution save files remote server, answer incomplete. hoping 1 can elaborate me how complete task.

here example given in previous question

cmap <leader>w :nwrite ftp://user@server/path/to/file.php 

this works well, has issue if wanted work @ time file hitting ctrl+w how work without manually writing out?

does special variable exist open file?

for example

cmap <leader>w :nwrite ftp://user@server/file/path/from/project/root/$file_and_extension 


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -