I use sumatraPDF and gVim to edit LaTeX files. Sumatra supposedly has a feature to open an editor at a specific line by the variable %l. As far as I can see, I can start gVim with the +<num> flag and it should start at the specific line.

But I can't seem to make that work. Sumatra opens gVim with the correct file (using %f) but it doesn't turn to the correct line. I run this command: gVim +%l --remote %f (the file opens, the line does not seem to be affected).

I use gVim 7.3 in Windows.


1 Answer 1


You have your arguments out of order, try this:

gvim --remote +%l %f


:help --remote

From within Vim.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .