On May 24, 6:20 pm, Kirill Igumenshchev <[email protected]> wrote: > hi, > suppose i have a vim session (vim1) with multiple buffers. I open another > session vim2 in another terminal and would like to edit one of the files that > is already opened as a hidden buffer in vim1. > > is there a way to do so that both vim1 and vim2 are synced?
Only by saving your changes in one Vim before switching to the other. In general I would advise against this, but you could do it by making sure you only ever have a single unsaved copy of this file. Write the file, switch to the other Vim, and execute :checktime if Vim doesn't automatically detect a file change. Then you can reload the file. I'm not sure how well this works for hidden buffers, if at all...I don't use them often myself. And I rarely ever have multiple Vims editing the same file intentionally. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
