I managed to enable the Vim keybindings in the Leo Editor, but I could not enable the Vim plugin (to use Vim as an external editor). I copied the branch @enabled-plugins from leoSettings.leo to my 'myLeoSettings.leo' file. I uncommented the 'vim.py' line. But there was no 'mod_tempfname' line. I tried inserting it. Did not work. I tried without the 'mod_tempfname' line. Didn't work either. Then I tried editing the variables 'vim_cmd' and 'vim_exe' in the 'leoSettings.leo' file and the vim.py plugin file. Didn't work either. In those variables I put /Applications/MacVim.app/Contents/MacOS/MacVim as the command, which in my system opens the GUI for MacVim. Too many error messages, I don't have time to go back and cut and paste them all, and I need to work now. I am sorry, I don't wish to be blunt, and I recognize the amazing work of the developers. But if a tool doesn't work, we drop that tool and use something that works instead. It's a shame, but it is what it is.
Is there no easy way to do this? There should be. Vim and Emacs are such popular editors. I guess many people might be curious about Leo, but if it doesn't work with their favorite editor (or if it is too hard to set it up), then using Leo is not an option. No, the keybindings are not enough, unfortunately. They behaved in a weird way (like 'dd' sometimes deleting the whole line, as it should, some times just moving on to the next line) and some commands missing (like '<ESC> 4 i -' to insert 4 hyphens). Plus, the text looked very weird in the Leo editor window, with irregular white space between letters, such that a word like "bicycle" would be seen in the screen more or less like "bic ycle". By the way, there should be a more detailed procedure about how to set up your 'myLeoSettings.leo' file. It took me a long time to figure that out. I guess the easiest way is to Open Leo, open the leoSettings.leo file, copy the @settings node, and paste it in the new file. From there, copy any nodes that are relevant to enabling the feature you want from the leoSettings.leo file to subnodes of @settings in the New file. Edit what you have to edit and save. Relaunch leo. I don't know if this is the easiest way to do it, but I didn't find anything in the doces, after 1h of searching that came close to be as clear as this (and I'm not claiming this is clear). I would be glad to write some documentation if I could make this whole thing work. I think I can do that relatively well. But the features I need (for now, essentially the external editor support) do not work. I think you guys are losing potential contributors to the program by having it so hard to install/use. I will stay alert for any news about how to set up the external editors easily. Until then, no Leo goodness for me. Again, congrats to the developers for designing such a smart application (it does look very interesting, promising, and smart, and that is why I am so frustrated that I can't use it). Best, Guilherme I tried without it, did not work. On Mon, Jun 29, 2009 at 5:39 AM, TL<[email protected]> wrote: > > Is there a way to use Vim for the text editing part? > > Yes, two options exist. I use both, choosing the one to use to edit > text depending on the amount of text to be edited and the Vim features > you want to use. > > Both options need to be enabled in your "myLeoSettings.leo" file. See > chapter 8 in the Users Guide for help with configuring Leo. > > Vi/Vim emulation: > A subset of the Vi/Vim command set is available within Leo by enabling > the Vi/Vim emulation key mappings in your myLeoSettings.leo file. See > chapter 22 in the User Guide for information on enabling the emulation > and the commands supported. The emulation is focused on Vi > functionality and has many limitations. > > Vim program interface: > Leo will interface with supported external editors using the > "open_with" plugin. To interface with the Vim program, enable the > "Vim" and "mod_tempfname" plugins (the "open_with" plugin in is > already enabled). See chapter 12 of the User Guide for information > about plugins. The open_with plugin will launch Vim and pass the > current node's body text to Vim for editing. Any time the Vim buffer > is saved, Leo's node is automatically updated with the new text. > The following link describes some of the latest enhancements. > > http://groups.google.com/group/leo-editor/browse_frm/thread/53eaa1bcc2bd1268 > > Additional insight on both features can be obtained by searching this > forum. > > Regards, > 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 -~----------~----~----~----~------~----~------~--~---
