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

slickest way to insert filename?

Expand Messages
  • Peter Bismuti
    What is the slickest way of insert the filename into the document?? The :r! echo % works but is a bit wordy. It could be mapped of course, but I was wondering
    Message 1 of 3 , Dec 7, 2000
    • 0 Attachment
      What is the slickest way of insert the filename into the document??

      The :r! echo % works but is a bit wordy. It could be mapped of course,
      but I was wondering if there is an even easier way.

      Thx

      _____________________________________________________________________
      | |
      | Pete Bismuti |
      | Department of Computer Science |
      | Florida State University |
      | bismuti@... (850) 644-6835 |
      |_____________________________________________________________________|
    • DouglasPotts@spectral-sys.com
      I believe that would be in insert mode, that you do: =% -Doug -- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Douglas L. Potts
      Message 2 of 3 , Dec 7, 2000
      • 0 Attachment
        I believe that would be in insert mode, that you do:
        <c-r>=%

        -Doug

        --
        *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
        Douglas L. Potts Spectral Systems, Inc. Url: http://www.bigfoot.com/~pottsdl
        "Writing is easy. It's all a matter of staring at a blank piece of paper
        until your forehead bleeds" -Douglas Adams
        *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*



        Peter Bismuti
        <bismuti@cs.f To: vim@...
        su.edu> cc:
        Subject: slickest way to insert filename?
        12/07/00
        01:50 PM





        What is the slickest way of insert the filename into the document??

        The :r! echo % works but is a bit wordy. It could be mapped of course,
        but I was wondering if there is an even easier way.

        Thx

        _____________________________________________________________________
        | |
        | Pete Bismuti |
        | Department of Computer Science |
        | Florida State University |
        | bismuti@... (850) 644-6835 |
        |_____________________________________________________________________|
      • Benji Fisher
        ... Normal mode: %p Insert mode: % ... --Benji Fisher
        Message 3 of 3 , Dec 7, 2000
        • 0 Attachment
          Peter Bismuti wrote:
          >
          > What is the slickest way of insert the filename into the document??
          >
          > The :r! echo % works but is a bit wordy. It could be mapped of course,
          > but I was wondering if there is an even easier way.
          >
          > Thx

          Normal mode: "%p

          Insert mode: <C-R>%

          :help registers
          :help copy-move
          :help i_ctrl-R

          --Benji Fisher
        Your message has been successfully submitted and would be delivered to recipients shortly.