Hello, I use Vim to write programs in Pascal and some other languages. I set up everything so Vim's quickfix works - :make saves and compiles currently opened file, :cope displays errors properly... But there's still one thing I would like to achive and I don't know how. It's quite unpleasant that I have to run the program manually after I compile it using :make. So my question is:
Is there any way to compile currently opened file and, if there were no errors during compilation, execute it - all of that by one command like ":run"? It may not be the ideal solution when working in console, but when I work in any kind of graphical environment (and especially when I develop applications with graphical interface), it would be very helpful. I know, I could write some sort of script or program that :make would call instead of the compiler and that would call the compiler itself and catch its messages - and if there were any errors, pass the messages to standard output, else execute the compiled program. But would be a very proprietary solution and I couldn't "migrate" between computers using .vimrc file only. -- View this message in context: http://www.nabble.com/Compile-and-run-program-in-Vim-tp21035479p21035479.html Sent from the Vim - General mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
