From: Mauricio Fernandez Date: 2007-01-08T09:34:14+09:00 Subject: Re: Problem with vim and SimpleFold (oops, I forgot this in +postponed) On Wed, Jan 03, 2007 at 06:45:06PM +0900, Guido wrote: > Thanks a lot for your help! > > Am Wed, 03 Jan 2007 08:38:29 +0900 schrieb Mauricio Fernandez: > >> Question 1: What do I have to do to make that annoying error go away? > solved :-) > > >> Question 2: If I uncomment the last line, the plugin should be used on > >> each freshly loaded ruby file. However vim complains, that the plugin is > >> unknown. How do I change that? > > > > This should do (it works for me) if you're using the f mapping. > > > > " fold when loading Ruby files > > au Filetype ruby execute "normal " . mapleader ."f" > > Somehow this doesn't work, vim complains that the variable mapleader is > undefined. However it's not much trouble to just press \f on loading, so > maybe I'll just go with that and hope I can get vim7 soon :-) Maybe an extra indirection level? execute "au Filetype ruby execute 'normal " . mapleader . "f'" works for me (but so does the above line, with vim 7) -- Mauricio Fernandez - http://eigenclass.org - singular Ruby