소스 검색

Doc: add nice custom header example

Marco Hinz 12 년 전
부모
커밋
236996f55b
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  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 = [
                 \ '   __      ___            ______ ____   ',