% is the answer many thanks.
On Thu, Oct 29, 2009 at 7:48 PM, David Fishburn <[email protected]> wrote: > > 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 > > > > -- JuanPablo AbarzĂșa Jaramillo Universidad de La Frontera Chile --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
