From 323e2fa4aecda232987e14ee0a1c70131d85d414 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 3 Jul 2019 07:10:28 -0400 Subject: [PATCH] site: fix setting-up-your-editor blog post crashing the server --- .../blog/2019-04-15-setting-up-your-editor.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/site/content/blog/2019-04-15-setting-up-your-editor.md b/site/content/blog/2019-04-15-setting-up-your-editor.md index 291ba6cb64..bea7f4c762 100644 --- a/site/content/blog/2019-04-15-setting-up-your-editor.md +++ b/site/content/blog/2019-04-15-setting-up-your-editor.md @@ -16,12 +16,18 @@ draft: true To treat all `*.svelte` files as HTML, add the following line to your `init.vim`: - au! BufNewFile,BufRead *.svelte set ft=html +```bash +au! BufNewFile,BufRead *.svelte set ft=html +``` To temporarily turn on HTML syntax highlighting for the current buffer, use: - :set ft=html +```bash +:set ft=html +``` To set the filetype for a single file, use a [modeline](https://vim.fandom.com/wiki/Modeline_magic): - +```bash + +```