Browse Source

readme: better autocmd for templates

restyle-spring-2019
Annika Backstrom 1 year ago
parent
commit
c931bd3763
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      README.md

+ 2
- 1
README.md View File

@@ -28,7 +28,8 @@ Example snippet for `.vimrc`:

if has("autocmd")
augroup templates
autocmd BufNewFile */blogdir/content/*.md 0r %:h:h/templates/article.md
autocmd!
autocmd BufNewFile */blogdir/content/*.md 0r %:s?content/.*?templates/article.md?
augroup END
endif


Loading…
Cancel
Save