Loading ...
Sorry, an error occurred while loading the content.

which file is being edited?

Expand Messages
  • shawn wilson
    How do I get the full path of the file I m editing? -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the
    Message 1 of 5 , Feb 18, 2013
    • 0 Attachment
      How do I get the full path of the file I'm editing?

      --
      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Christian Brabandt
      Hi shawn! ... 1 regards, Christian -- Charade Das Erste, das ist immer, Und wenn auch die Welt vergeht; Das Zweite ist man und bleibt man, Wenn man zu
      Message 2 of 5 , Feb 18, 2013
      • 0 Attachment
        Hi shawn!

        On Mo, 18 Feb 2013, shawn wilson wrote:

        > How do I get the full path of the file I'm editing?

        1<Ctrl-G>

        regards,
        Christian
        --
        Charade

        Das Erste, das ist immer,
        Und wenn auch die Welt vergeht;
        Das Zweite ist man und bleibt man,
        Wenn man zu lesen versteht.

        -- Heinrich Heine

        --
        --
        You received this message from the "vim_use" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php

        ---
        You received this message because you are subscribed to the Google Groups "vim_use" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      • stosss
        ... will show you where you are and let you pick another file in the directory. -- -- You received this message from the vim_use maillist. Do not top-post!
        Message 3 of 5 , Feb 18, 2013
        • 0 Attachment
          On Mon, Feb 18, 2013 at 3:51 AM, shawn wilson <ag4ve.us@...> wrote:
          > How do I get the full path of the file I'm editing?
          >

          :Explore

          will show you where you are and let you pick another file in the directory.

          --
          --
          You received this message from the "vim_use" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php

          ---
          You received this message because you are subscribed to the Google Groups "vim_use" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
          For more options, visit https://groups.google.com/groups/opt_out.
        • Jürgen Krämer
          Hi, ... register % contains the name of the current file. You can pass % as an ... or ... This might give you the file name with a path relative to the
          Message 4 of 5 , Feb 18, 2013
          • 0 Attachment
            Hi,

            shawn wilson wrote:
            > How do I get the full path of the file I'm editing?

            register % contains the name of the current file. You can pass '%' as an
            argument to the expand() function:

            :echo expand('%')

            or

            :let filename = expand('%')

            This might give you the file name with a path relative to the current
            directory. If you always want an absolute path you can append ':p' to
            the register name:

            :echo expand('%:p')

            Regards,
            Jürgen

            --
            Sometimes I think the surest sign that intelligent life exists elsewhere
            in the universe is that none of it has tried to contact us. (Calvin)

            --
            --
            You received this message from the "vim_use" maillist.
            Do not top-post! Type your reply below the text you are replying to.
            For more information, visit http://www.vim.org/maillist.php

            ---
            You received this message because you are subscribed to the Google Groups "vim_use" group.
            To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
            For more options, visit https://groups.google.com/groups/opt_out.
          • shawn wilson
            I forgot about C-G - thanks ... This is what I m looking for. Now to associate it with an F key or leader.... decisions -- -- You received this message from
            Message 5 of 5 , Feb 20, 2013
            • 0 Attachment
              I forgot about C-G - thanks

              On Mon, Feb 18, 2013 at 4:23 AM, Jürgen Krämer <jottkaerr@...> wrote:
              >
              > :echo expand('%:p')

              This is what I'm looking for. Now to associate it with an F key or
              leader.... decisions

              --
              --
              You received this message from the "vim_use" maillist.
              Do not top-post! Type your reply below the text you are replying to.
              For more information, visit http://www.vim.org/maillist.php

              ---
              You received this message because you are subscribed to the Google Groups "vim_use" group.
              To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
              For more options, visit https://groups.google.com/groups/opt_out.
            Your message has been successfully submitted and would be delivered to recipients shortly.