• VIM plugin to support plain-text/source-code headers

    From Digital Man@VERT to All on Sunday, September 15, 2019 17:01:43
    Just wanted to plug this plug-in for VIM users:
    https://www.vim.org/scripts/script.php?script_id=4122


    Yeah, VIM has its own special headers to control handling/display of tab chars, but I defined an editor-agnostic solution 20 years ago and it was great to find someone had written a VIM plugin to support them back in 2012.

    That's what those "@format.something" tags you see in many of my source files is all about.

    Programmers have written plugins for other editors too, but I've lost track of them over the years.

    digital man

    Synchronet "Real Fact" #78:
    Synchronet Match Maker had at one time over 4000 profiles of men and women.
    Norco, CA WX: 84.9øF, 30.0% humidity, 12 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Android8675@VERT/SHODAN to Digital Man on Wednesday, September 18, 2019 07:11:48
    Re: VIM plugin to support plain-text/source-code headers
    By: Digital Man to All on Sun Sep 15 2019 05:01 pm

    DM> Programmers have written plugins for other editors too, but I've lost
    DM> track of them over the years.

    DM> digital man

    https://tools.ietf.org/html/draft-swindell-ptsc-hdr-01
    Plain Text/Source Code File Header
    Anyone that has dealt at length with plain (ASCII [1]) text and source code files can testify that the lack of a global definition of the effect of the horizontal-tab character, all too often, causes ill-formed display and printed output of plain text files that utilize the horizontal-tab character for formatting. This document defines a common header for plain text and source code (PT/SC) files, whose primary purpose is to specify the tab-dependant formatting parameters to be used when displaying, printing, or editing such files. The defined header also addresses such issues as whether to use the line-feed character or carriage-return/line- feed character sequence to terminate lines in the file. Widespread adoption and support of the header defined in this document could substantially improve the interoperability of text and source code files distributed across the Internet and other mediums.


    Wow, you did this DM? (I keep forgetting if you're r.swindell, or that's the
    other guy) This is some pretty funny stuff:

    --clip--
    Needless to say, the party is a disaster: Bob's a vegetarian, Sally
    and Mike are lactose intolerant, and the DJ brings only Modern Dance
    music.
    --end clip--

    Saving parties, one text formatting control scheme at a time...
    --
    Android8675@ShodansCore

    ---
    þ Synchronet þ Shodan's Core @ ShodansCore.com