LaTeX-Box-Team / LaTeX-Box

Lightweight Toolbox for LaTeX - New Official repository
http://www.vim.org/scripts/script.php?script_id=3109
GNU General Public License v3.0
396 stars 66 forks source link

let g:LatexBox_viewer=" ..." #175

Closed Konfekt closed 10 years ago

Konfekt commented 10 years ago

When let g:LatexBox_viewer under Windows demands an additional space, that is,

let g:LatexBox_viewer=" SumatraPDF"

works, but

let g:LatexBox_viewer="SumatraPDF"

not. If intended, this should be better documented, or otherwise be fixed to accept the latter version too.

lervag commented 10 years ago

I don't use windows myself, so I can't test changes. But I think the bug is in ftplugin/latex-box/common.vim line 223:

  let cmd = '!start /b' . cmd . ' >nul'

should be

  let cmd = '!start /b ' . cmd . ' >nul'

Could you test this? If I'm right, the fix should make it work for your second example, but it should also work for the first example.

Konfekt commented 10 years ago

Yeah, that's it. Now it works as expected.

Am mardi 10 juin 2014 17:01:21 schrieb Karl Yngve Lervåg:

I don't use windows myself, so I can't test changes. But I think the bug is in ftplugin/latex-box/common.vim line 223:

let cmd= '!start /b' . cmd .' >nul'

should be

let cmd= '!start /b' . cmd .' >nul'

Could you test this? If I'm right, the fix should make it work for your second example, but it should also work for the first example.

— Reply to this email directly or view it on GitHub https://github.com/LaTeX-Box-Team/LaTeX-Box/issues/175#issuecomment-45625194.