Browse Source

Doc: add nice custom header example

Marco Hinz 12 years ago
parent
commit
236996f55b
1 changed files with 8 additions and 1 deletions
  1. 8 1
      doc/startify.txt

+ 8 - 1
doc/startify.txt

@@ -287,7 +287,14 @@ Every string will be written on its own line.
 
 NOTE: If a string contains ', you have to quote it with another '.
 
-Example:
+
+A programmatic example:
+
+    let g:startify_custom_header =
+      \ map(split(system('fortune | cowsay'), '\n'), '"   ". v:val') + ['','']
+
+
+A hardcoded example:
 
     let g:startify_custom_header = [
                 \ '   __      ___            ______ ____   ',