from Leo is easy, just add current cursor position to command line
vim myfile +10
opens myfile with the cursor at line 10

returning to Leo is a bit convoluted, but seems doable
http://vim.wikia.com/wiki/Restore_cursor_to_file_position_in_previous_editing_session

vim is editing <extfile>, the session data will be saved in /tmp/vim_leo.bridge
$ vim <extfile> -c "set viminfo='1,n/tmp" -i vim_leo.bridge

'1   =  save 1 mark
n/tmp  =  in directory /tmp
-i vim_leo.bridge  =  name the viminfo file vim_leo.bridge

in the file /tmp/vim_leo.bridge we see the following, saying the cursor
was on line 114 when vim exited.

# File marks:
'0  114  0  /tmp/brc

# Jumplist (newest first):
-'  114  0  /tmp/brc


On Tue, Mar 24, 2015 at 2:26 PM, Edward K. Ream <[email protected]> wrote:
> On Tue, Mar 24, 2015 at 10:15 AM, Kent Tenney <[email protected]> wrote:
>>
>> > use the @clean update
>>
>> In my case, I would be opening the file in Vim from an
>> @auto tree, I would that, upon
>> save and close -> return to Leo
>> Leo would do an @auto refresh from disk
>
>
> Should be possible.
>
>>
>>
>> Ideally, cursor position would be maintained in both directions,
>> but very handy even without that.
>
>
> How would Vim tell Leo about cursor position, or vice versa?
>
> EKR
>
> --
> 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