vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vile] consistent majormode?


From: Steven Lembark
Subject: [vile] consistent majormode?
Date: Fri, 10 Nov 2017 15:20:41 +0000

Editing YMAL files using 9.8s.

My .vilerc includes:

    define-majormode yaml
    remove-submode yaml cindent
    ~with define-submode yaml
        preamble    '^---$'
        suffixes    '\.\(yaml\|yml\)'
        notabinsert
        tabstop=2
        shiftwidth=2
    ~endwith

I cd to ./etc and "xvile *yaml".

The first file shows up in yaml mode, the second in cmode.

Q: Why?
Q: Is there any way to fix this in my definition, above?
Q: Is there any way to just force the majormode from the ':' prompt?


This file shows up in yamlmode (basename "Querys.config.yaml"):

---

querys  :

  new_batch :

    table   : batch   
    output  : id
    values  :
    - tech_partner_id
    - rds_partner_id
    - batch_type
    - effective
    - ctime
    - local_path
    - signature

  add_batch_eav :

    table   : batch_eav
    output  : id
    values  :
    - batch_id
    - ctime
    - tag
    - value

  add_batch_diag  :

    table   : batch_diag
    output  : id
    <values :
    - batch_id
    - ctime
    - level
    - tag
    - value

This file shows up in cmode (basename "DB.config.yaml"):

---

Database    :

    dbi_type    : DBI:mysql:max_allowed_packet=4MB
    dbi_port    : 3306

    # user overrides/supplies these via IW_DATABASE.
    # see perldoc IdeaWorks::Util::Confgure for details.

    dbi_host    :

    dbi_name    :

    dbi_user    :

    dbi_pass    :

    # retry count for restartable query failures.
    # used in the insert, update, select handlers
    # (see @exec_methods in DB.pm).
        
    retry_count : 3   

in both cases the standard '---' prefix is on line 1 (i.e., at
offset zero in the file).

thanks

-- 
Steven Lembark                                             3646 Flora Pl
Workhorse Computing                                   St Louis, MO 63110
address@hidden                                      +1 888 359 3508



reply via email to

[Prev in Thread] Current Thread [Next in Thread]