aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2012-10-11 14:47:25 +0900
committermattn <mattn.jp@gmail.com>2012-10-11 14:47:25 +0900
commit6519d7219efa079c9e8425201dc2a9075f67c82f (patch)
treee957fc86b12f2b07c33d005b50fde6267f7c6790 /template
parentb07d0796e7178fc23673a99c9f49a1a6721746f8 (diff)
downloadvim-sonictemplate-6519d7219efa079c9e8425201dc2a9075f67c82f.tar.gz
vim-sonictemplate-6519d7219efa079c9e8425201dc2a9075f67c82f.tar.bz2
vim-sonictemplate-6519d7219efa079c9e8425201dc2a9075f67c82f.zip
also -.
Diffstat (limited to 'template')
-rw-r--r--template/markdown/base-post.mkd2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/markdown/base-post.mkd b/template/markdown/base-post.mkd
index d19c898..61859a4 100644
--- a/template/markdown/base-post.mkd
+++ b/template/markdown/base-post.mkd
@@ -1,6 +1,6 @@
---
layout: post
-title: {{_expr_:substitute(matchstr(expand("%:p:t:r"), '^[0-9-]\+\zs.*'), '_', ' ', 'g')}}
+title: {{_expr_:substitute(matchstr(expand("%:p:t:r"), '^[0-9-]\+\zs.*'), '[-_]', ' ', 'g')}}
date: {{_expr_:strftime('%Y/%m/%d %H:%M', localtime())}}
---
{{_cursor_}}