Skip to content

Instantly share code, notes, and snippets.

@linktohack
Created July 4, 2013 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linktohack/5925742 to your computer and use it in GitHub Desktop.
Save linktohack/5925742 to your computer and use it in GitHub Desktop.
vim LaTeX forwad search
" LaTeXForwadSearch {{{
function! LaTeXForwadSearch()
silent! execute '!"C:\Applications\SumatraPDF\SumatraPDF.exe -reuse-instance ' \
. expand('%:p:r') . '.pdf -forward-search ' . expand('%:p') . ' ' . line('.') . '"'
" This line is reverse search for SumatraPDF
"C:\Users\Link\Dropbox\Applications\Vim\gvim.exe" --remote-silent +"%l|norm zz" "%f"
endfunction
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment