We can use SyncTeX to achieve Forward & Inverse searching between PDF and Tex files.
Set
pdflatex = "pdflatex --synctex=-1 %O %S";
Or compile tex file by using
pdflatex --syntex=-1 file.tex
1. swift between Gvim and SumatraPDF
Here use vim/gvim to edit tex files and SumatraPDF for PDF files
Forward research: tex -> pdf
In vim’s command mode, type \ls . Note: Need vim plugin latex-suite.
Inverse research: pdf -> tex
Just double-left click. Note: configure setting:
"C:\Program Files (x86)\Vim\vim80\gvim.exe" --remote-silent +"%l|exe 'normal! zv'" %f
Or
"C:\Program Files (x86)\Vim\vim80\gvim.exe" --servername GVIM --remote-silent +%l %f
If you have add gvim path into $PATH, just set it as
gvim --remote-silent +"%l|exe 'normal! zv'" %f
2. swift between WinEdt and SumatraPDF
Forward research: tex -> pdf
Use shortcut key: Shift + F8, or click
Inverse research: pdf -> tex
Just double-left click. Note: configure setting:
"C:\Program Files\WinEdt Team\WinEdt 10\WinEdt.exe" -C="WinEdt 10.2" "[Open(|%f|);SelPar(%l,8);]"