On 2009-05-12, J wrote:
> 2. Is it possible to configure macros to make compiling more '1-click'-
> ish? It'd be nice if I could press F11 and it'll execute 'make' and './
> program'.
If the program name is just the current source file name with the
suffix removed, you could use this:
:map <F11> :make %< \| !./%< <CR>
See
:help :_%<
:help map_bar
Regards,
Gary
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---