Thanks TL. For now, I am using the update a context menu according to another thread in this list:
http://groups.google.com/group/leo-editor/browse_thread/thread/9cd11a6da8a1bbe8 That works for me. Are there any advantages in using the mySettings.leo file approach? Like keyboard shortcuts or something else? (Or learning how plugins work, I guess...) Best, Guilherme On Wed, Jul 1, 2009 at 6:38 AM, TL<[email protected]> wrote: > >> Ok, it seems that there are multiple ways of setting Vim as a external >> editor for Leo. > > Actually, no. Enabling export to Vim should all be done within your > myLeoSettings.leo file. > >> can somebody please give me instructions > > Here is an export of a myLeoSettings.leo file that works. Each line > is a node's headline text. Indenting indicates a sub-node. > > + @settings > - @enabled-plugins > + open_with plugin's global settings > - @bool open_with_save_on_update = True > - @bool open_with_goto_node_on_update = False > - @bool open_with_clean_filenames = True > - @bool open_with_uses_derived_file_extensions = True > - @bool vim_plugin_positions_cursor = True > + vim plugin's global settings > - @bool vim_plugin_uses_tab_feature = True > - @bool vim_plugin_opens_url_nodes = False > - @bool vim_plugin_always_launched = False > - @string vim_exe = C:\Program Files\vim\gvim > - @string vim_cmd = C:\Program Files\vim\gvim --servername LEO > + @keys Vim bindings > <sub-nodes not shown> > > The "@enabled-plugins" node contains the following text: > open_with.py > mod_tempfname.py > vim.py > > All other nodes do not require any body text except the sub-nodes of > the "@keys Vim bindings" node. > > The "@keys Vim bindings" node is the copy of the same node in the > leoSettings.leo file. Its sub-nodes are not shown in the outline > above to keep this post short. > > Double clicking on a node's box (the box to the left of the node's > headline text) will invoke the VIM program. > > I tested this bare-bones file under WinXP. It should work under all > other supported operating systems. > > TL > > > -- Guilherme P. de Freitas http://www.gpfreitas.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
