10x,
Yosi
>
> Please update to OutlookVim 3.0.
>
done
> Two things:
>
> 1. After opening the email in Vim, please provide the output from:
> :au outlook
>
> You can select this with your mouse and hit CTRL-Y, then paste it into
> this email. It should look something like this:
> ****
> :au outlook
> --- Auto-Commands ---
> outlook BufEnter
> *.outlook setlocal filetype=mail
> outlook BufUnload
> *.outlook if expand('%:e') == 'outlook' | call
> delete(expand('%:p').'.ctl') | call delete(expand('%:p')) | endif
> outlook BufWritePost
> *.outlook setlocal autoread | let g:outlook_cscript_output =
> system('cscript "C:\Vim\vimfiles\plugin\outlookvim.js"
> "'.expand("%").'" ')| bdelete | if g:outloo
> k_cscript_output =~ 'outlookvim:' | call Outlook_WarningMsg(
> substitute(g:outlook_cscript_output, '^.*\(outlookvim:.*\)', '\1', '')
> ) | endif
> ****
>
Doesn't look good. I get:
E216: No such group or event: outlook
>
> 2. After typing :w, please provide the output from:
> :echo g:outlook_cscript_output
>
> It should say something like this:
> ****
> Microsoft (R) Windows Script Host Version 5.8
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> Successfully updated Outlook, message
> ID:0000000026A082186274D011808F00805FF466B524ACAB01
> ****
>
E121: undefined variable: g:outlook_cscript_output
E15: invalid expression: g:outlook_cscript_output
I checked a bit and I think the reason this fails is:
1. Fail to load the javascript b/c
2. $VIM contains a space (i.e c:/Program file/vim)
3. So this snippet is failing:
" Default location for the outlookvim.js file.
" This can be overridden in your vimrc via
" g:outlook_javascript
let s:outlook_javascript_default = expand('$VIM/vimfiles/plugin/outlookvim.js')
so outlook.vim gives error that it can't load the js file.
How can I fix this?
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment