diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/template-vim.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/template-vim.txt b/doc/template-vim.txt index 0e49f8c..c407eff 100644 --- a/doc/template-vim.txt +++ b/doc/template-vim.txt @@ -167,9 +167,16 @@ Note that I'm using pathogen-vim. |{{_expr_:xxx}}| : expression in vimscript. - For example, "Current Time:|{{_expr_:strftime('%c')}}|" will be + For example: "Current Time:|{{_expr_:strftime('%c')}}|" will be > Current Time: 2011/10/27 20:19:00 < + |{{_if_:expr;foo;bar}}| : ternary operator + + For example: When today is saturday, + "Today is |{{_if_:strftime('%w')%6;OrdinaryDay;Holiday}}|" will be +> + Today is Holiday +< ============================================================================== vim:tw=78:ts=8:ft=help:norl:noet:fen:fdl=0: |