open new file with vim/gvim
Dear friends,
How can I open a new fortran file (.f90 extension) with some predefined lines added? Like, say, if I open a new file foo.f90, can I edit vimrc in such a way that, it will write 1 This is file "foo" 2 Implicit None any suggestion? |
Hi,
Try adding this to your .vimrc file: Code:
autocmd BufNewFile *.f90 call New_Fortran_File() Hope this helps. |
All times are GMT -5. The time now is 11:42 AM. |