And you need to sync the changes in this file to /var/www/mysite/index.html after each edit, or you have mounted two hosts using sshfs as: /mnt/sshfs/host0/ and /mnt/sshfs/host1/ and you'd like to simultaneously edit a file path/to/file.txt at the same location under the two directories, you can open the file src/mysite/index.html or path/to/file.txt using Vim and then before any edits, run the command: autocmd BufWritePost w! /% This will define a new command DuplicateAt which can be invoked as: DuplicateAt /path/to/duplicate/at/
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
Version |
|
dbkwik:vim/property/wikiPageUsesTemplate | |
Previous |
|
Category |
|
Author |
|
Subpage |
|
Complexity |
|
Created |
|
ID |
|
NEXT |
|
abstract |
|