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

Determining if a buffer is modified?

Expand Messages
  • Steven Dodd
    How can one accomplish this from a vim macro? ______________________________ Steven Dodd Software Developer, Harmony MR 905.672.2100x1217 sdodd@cedara.com
    Message 1 of 2 , Jul 1, 2003
      How can one accomplish this from a vim macro?

      ______________________________
      Steven Dodd
      Software Developer, Harmony MR

      905.672.2100x1217
      sdodd@...

      Cedara Software Corp.
      www.cedara.com
    • Jürgen Krämer
      Hi, ... if &modified echo Buffer is modified else echo Buffer is no modified endif Regards, Jürgen -- Jürgen Krämer
      Message 2 of 2 , Jul 1, 2003
        Hi,

        Steven Dodd wrote:
        > How can one accomplish this from a vim macro?

        if &modified
        echo "Buffer is modified"
        else
        echo "Buffer is no modified"
        endif

        Regards,
        Jürgen

        --
        Jürgen Krämer Softwareentwicklung
        Habel GmbH mailto:jkraemer@...
        Hinteres Öschle 2 Tel: (0 74 61) 93 53 15
        78604 Rietheim-Weilheim Fax: (0 74 61) 93 53 99
      Your message has been successfully submitted and would be delivered to recipients shortly.