> More potential for confusion if changes are made in the vim version.
Yep.  At least prior to any changes Ed may be making, Leo when it is open
does not detect external file changes automatically the way that vim does
so when I have leo open and am editing through leo-vim, I am using a
standalone vim instance only to view the file.  When I am editing through a
standalone vim instance and switch to leo, I manually reopen the file in
leo.  Ideally, leo would operate just like vim and detect changes to
external files and prompt the user with whether they want to reload the
file or not.  Even if leo did that detection on external files, you still
have the potential for changes to collide if you're essentially
simultaneously editing in both standalone vim and leo-vim but that is
unavoidable.

Steve

On Fri, Mar 27, 2015 at 7:47 AM, Kent Tenney <[email protected]> wrote:

> Nice. It seems the same as the vim.py plugin.
> Regarding files open by both vim and leo, sounds like a good
> workflow if changes happen primarily in Leo, since vim handles
> that transparently. More potential for confusion if changes are
> made in the vim version.
>
> I think the vim-open-file command fills an important gap in capability.
>
> Thanks,
> Kent
>
> (what about 'Open with' appearing on node rclick menu ...?)
>
> On Thu, Mar 26, 2015 at 4:39 PM, Steve Zatz <[email protected]> wrote:
> >> Do you use it? does it operate on nodes?
> >> Seeing it on the 'File' menu, it looks to be intended only for files,
> not
> >> nodes.
> >
> > Works perfectly.
> >
> > @settings->@openwwith Vim
> >
> > node contents are simply:
> >
> > ext:
> > kind:  subprocess.Popen
> > arg: (location of vim executable)
> >
> > Sounds like it would open the whole external file (I am using this on
> @clean
> > files) but actually opens the node that is selected in leo in vim (could
> be
> > any editor).  When you save in vim, it updates the corresponding node in
> > leo.  Sometimes I also have the whole external file open in vim as well
> as
> > these separate vim windows tied to specific leo nodes; vim detects any
> > changes to the external file and asks if you want to update the current
> view
> > so it all works together well.  Because this works for me, have not been
> > particularly interested in an @edit node in leo that contains the whole
> > file.
> >
> > Steve
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "leo-editor" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/leo-editor.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to