From 9e2279ae364f901060082442410872622d5c908b Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 26 Dec 2019 18:36:46 +0300 Subject: [PATCH] Drop ftdetect hack, set filetype used by plugin --- .tridactylrc | 4 ++-- src/lib/config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.tridactylrc b/.tridactylrc index 7d22bebb..05392dec 100644 --- a/.tridactylrc +++ b/.tridactylrc @@ -148,5 +148,5 @@ autocmd DocStart ^http(s?)://www.reddit.com js tri.excmds.urlmodify("-t", "www", " Mosquito nets won't make themselves autocmd DocStart ^http(s?)://www.amazon.co.uk js tri.excmds.urlmodify("-t", "www", "smile") -" This will have to do until someone writes us a nice syntax file :) -" vim: set filetype=vim: +" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl +" vim: set filetype=tridactyl diff --git a/src/lib/config.ts b/src/lib/config.ts index c7b1e8ea..a5a87f09 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -1485,7 +1485,7 @@ export function parseConfig(): string { if (p.logging.length > 0) s.logging = `" Logging\n${p.logging.join("\n")}\n\n` - const ftdetect = `" vim: set filetype=vim:` + const ftdetect = `" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl\n" vim: set filetype=tridactyl` return `${s.general}${s.binds}${s.subconfigs}${s.aliases}${s.aucmds}${ s.aucons