How to auto-create a makefile in the same directory as i create a Latex file?

Posted by Viktiglemma on Stack Overflow See other posts from Stack Overflow or by Viktiglemma
Published on 2010-06-02T09:30:53Z Indexed on 2010/06/02 9:33 UTC
Read the original article Hit count: 117

Filed under:
|
|

When I create a .tex file using vim I get a nice template from having

autocmd BufNewFile *.tex 0r $HOME/.vim/templates/skeleton.tex

in my .vimrc. I also have a makefile-template in my home directory, but this one I have to manually copy to where the .tex file is. In a Linux environment, how can I auto-copy or auto-generate the makefile at the same time as I create a .tex file?

© Stack Overflow or respective owner

Related posts about linux

Related posts about vim