Vim does not return to the same file when exiting an external command
I am trying to compile my tex file inside vim. I have a Makefile to compile and I just type :make
to call it. This usually works well, but sometimes vim doesn't come back to the .tex file where I called make. Instead, I find myself in a .cls file after pressing "ENTER or type command to continue".
Wondering what's going on? And how do I get it to work as I expected - revert to the original file? Thank.
+3
source to share
3 answers
There is one more question that may be related: How to disable "Press ENTER or enter command to continue" prompt in Vim?
I am using this config:
map <F10> :w<CR>:!make<CR><CR>
Pressing F10 normally saves the tex file to me and calls make and returns editing the file.
0
source to share