Peter Lewis wrote:
Hi Tom,
Thanks for all your help trying to sort this out :-)
No problem :) This is much more fun than what I'm supposed to be doing
at the moment....
Ok, so I've found the problem. The function Tex_StartOutlineCompletion()
sets some mappings which include the directory, but this is not properly
escaped. I have attached an amended patch which deals with this issue
against the current SVN version (i.e. this patch also includes the
changes from the patch I originally sent out fixing the problems in
windows). This could do with a bit more testing as there may be other
things that need escaping for other situations, but for now this should
fix your problem.
Tom
--- texviewer.vim 2009-04-20 18:39:53.000000000 +0100
+++ texviewer_new.vim 2009-04-24 15:37:11.000000000 +0100
@@ -766,7 +766,19 @@ function! Tex_StartOutlineCompletion()
0put!=retval
else
- exec '0r!'.shellescape(s:path.'/outline.py').' '.mainfname.' '.s:prefix
+ " Windows defaults for shellxquote are bad curretly.
+ " See http://groups.google.com/group/vim_dev/browse_thread/thread/3d1cc6cb0c0d27b3
+ if has('win32') || has('win16') || has('win64')
+ let shxq_sav=&shellxquote
+ let shcf_sav=&shellcmdflag
+ set shellxquote=\"
+ set shellcmdflag=/s\ /c
+ endif
+ exec '0r!'.shellescape(s:path.'/outline.py').' '.shellescape(mainfname).' '.s:prefix
+ if has('win32') || has('win16') || has('win64')
+ let &shellxquote=shxq_sav
+ let &shellcmdflag=shcf_sav
+ endif
endif
0
@@ -774,10 +786,10 @@ function! Tex_StartOutlineCompletion()
call Tex_SetupOutlineSyntax()
exec 'nnoremap <buffer> <cr> '
- \ .':cd '.s:origdir.'<CR>'
+ \ .':cd '.escape(s:origdir, ' ').'<CR>'
\ .':call Tex_FinishOutlineCompletion()<CR>'
exec 'nnoremap <buffer> q '
- \ .':cd '.s:origdir.'<CR>'
+ \ .':cd '.escape(s:origdir, ' ').'<CR>'
\ .':close<CR>'
" once the buffer is initialized, go back to the original settings.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel