On Mon, Mar 14, 2011 at 12:12 PM, Rob wrote:
>
> Unfortunately I haven't managed to get the file to load
> automatically so I need a manual ":source" command in vim:
>
> pyclewn -c --cmd source pyclewn_init
>


The above command should be quoted:

    pyclewn -c '--cmd "source pyclewn_init"'


The vim arguments (the '-c' parameters) are the last command line
parameters set by pyclewn when vim is spawned. Also ':help autocmd' in
Vim, states that "Vim always adds the {cmd} after existing
autocommands, so that the autocommands execute in the order in which
they were given.".  So the solution is to set an autocmd in your
pyclewn_init file.

To get the wrap setting in (clewn)_console:

    start pyclewn with (do not use --cmd to avoid having the
    pyclewn_init file sourced before pyclewn own init scripts):

        pyclewn -c '-S pyclewn_init'

    with pyclewn_init containing the line:

        autocmd BufWinEnter (clewn)_console setlocal wrap


-- 
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general

Reply via email to