On Thu, Oct 29, 2009 at 6:43 PM, JuanPablo <[email protected]> wrote:
>
> yes, :make is for compile.
>
> but my real question is a vim function for get the name of file.
You would use:
:!gcc %
Or you can get the fullpath of the file name with:
expand("%:p")
So you could use:
:echo system('gcc '.expand("%:p"))
:h filename-modifiers
HTH,
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---