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`:
28 28
 
29 29
     if has("autocmd")
30 30
         augroup templates
31
-            autocmd BufNewFile */blogdir/content/*.md 0r %:h:h/templates/article.md
31
+            autocmd!
32
+            autocmd BufNewFile */blogdir/content/*.md 0r %:s?content/.*?templates/article.md?
32 33
         augroup END
33 34
     endif
34 35
 

Loading…
Cancel
Save