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.
>
> On Thu, Oct 29, 2009 at 7:38 PM,  <[email protected]> wrote:
> > Just do a :make instead
> >
> > Sent on the Now Network™ from my Sprint® BlackBerry
> >
> > -----Original Message-----
> > From: JuanPablo <[email protected]>
> > Date: Thu, 29 Oct 2009 19:33:08
> > To: <[email protected]>
> > Subject: name of this file
> >
> >
> > hi,
> >  how I can get the name of file I am editing with vim ?
> >  if I editing a file called source.c, how can compilling this file ?
> >
> > !gcc source.c
> >
> > exist a general function for get name of file ?
> >
> > !gcc nameOfFile()
> >
> > --
> > JuanPablo
> >
> >
> >
> > >
> >
>
>
>
> --
> JuanPablo Abarzúa Jaramillo
> Universidad de La Frontera
> Chile
>
> >
>
The % register contains the current filename. So, for example, "%p would
place the current filename after the cursor. In ex commands, you can just
use % directly as in
 :!gcc %
to do what you describe.

FYI, it's customary to post responses at the bottom of the previous message
on this list (known as bottom-posting)

HTH



-- 
Christopher Suter
www.grooveshark.com

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to