On Fri, 10 Nov 2017 15:20:41 +0000 Steven Lembark <[email protected]> wrote:
> 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"): > I'm using an older version of vile - 9.8q. Both files show up in yaml mode for me. Perhaps there's been a regression? Or you have some other entries in .vilerc which cause in the error? My .vilerc is very minmalistic. One difference is that I ran ``vile *.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). > -- Gary Jennejohn _______________________________________________ vile mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/vile
