I am using the following lines in my .vimrc file, and they work for me. inoremap <F3> <C-O>:!pdftex book.tex<Cr> nnoremap <F3> :!pdftex book.tex<Cr> inoremap <F4> <C-O>:!texexec book.tex<Cr> nnoremap <F4> :!texexec book.tex <Cr>
Now for another purpose on another partition I want F3 to execute following on the current file: cobc -x and F4 to execute: cobc -m The current file name is the sticking point. How do I jigger the inoremap lines to respond in the new way? I can arrange that all my books are called book.tex but that doesn't work well for programs :<). John Culleton "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.scribd.com/doc/24676863/ http://www.booklocker.com/books/4055.html -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php