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

50586Bug or feature? [-] for helpfiles when 'statusline' nonempty

Expand Messages
  • Antoine J. Mechelynck
    May 29, 2004
    • 0 Attachment
      With 'statusline' empty, "normal" files have [+] when modified, otherwise
      nothing at that position; help files, at least when not modified (the usual
      case), have nothing.


      set statusline=%<%f\
      %h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\
      &bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P

      (all on one line), "normal" unmodified files still have nothing. Help files
      have [-] even though ":setl mod?" answers "nomodified".

      Bug or feature? My understanding was that %m means

      print nothing if 'nomodified'
      print [+] if 'modified' and 'noreadonly'
      print [-] if 'modified' but 'readonly' (the help says if 'nomodifiable' but
      how can we have 'modified' if 'nomodifiable'?)

      Apparently I misunderstood? Does [-] mean 'nomodifiable' then, regardless of
      'modified' status (which will be off)? If so, why does that flag _not_
      appear on helpfiles with 'statusline' empty?

    • Show all 4 messages in this topic