瀏覽代碼

Extend example configuration

Marco Hinz 11 年之前
父節點
當前提交
b92a8f1b51
共有 1 個文件被更改,包括 22 次插入15 次删除
  1. 22 15
      doc/startify.txt

+ 22 - 15
doc/startify.txt

@@ -621,25 +621,32 @@ EXAMPLE                                                       *startify-example*
 
 This is my configuration..
 >
-    let g:startify_files_number        = 8
-    let g:startify_session_persistence = 1
-    let g:startify_session_autoload    = 1
-    let g:startify_enable_special      = 0
+    autocmd FileType startify setlocal cursorline
+
+    let g:startify_enable_special         = 0
+    let g:startify_files_number           = 8
+    let g:startify_relative_path          = 1
+    let g:startify_change_to_dir          = 1
+    let g:startify_session_autoload       = 1
+    let g:startify_session_persistence    = 1
+    let g:startify_session_delete_buffers = 1
 
     let g:startify_list_order = [
-          \ ['   LRU:'],
-          \ 'files',
-          \ ['   Sessions:'],
-          \ 'sessions',
-          \ ['   Bookmarks:'],
-          \ 'bookmarks',
-          \ ]
+      \ ['   LRU:'],
+      \ 'files',
+      \ ['   LRU within this dir:'],
+      \ 'dir',
+      \ ['   Sessions:'],
+      \ 'sessions',
+      \ ['   Bookmarks:'],
+      \ 'bookmarks',
+      \ ]
 
     let g:startify_skiplist = [
                 \ 'COMMIT_EDITMSG',
                 \ $VIMRUNTIME .'/doc',
                 \ 'bundle/.*/doc',
-                \ '.vimgolf',
+                \ '\.vimgolf',
                 \ ]
 
     let g:startify_bookmarks = [
@@ -654,13 +661,13 @@ This is my configuration..
           \ map(split(system('tips | cowsay -f apt'), '\n'), '"   ". v:val') + ['']
 
     hi StartifyBracket ctermfg=240
+    hi StartifyFile    ctermfg=147
+    hi StartifyFooter  ctermfg=240
+    hi StartifyHeader  ctermfg=114
     hi StartifyNumber  ctermfg=215
     hi StartifyPath    ctermfg=245
     hi StartifySlash   ctermfg=240
     hi StartifySpecial ctermfg=240
-    hi StartifyHeader  ctermfg=114
-    hi StartifyFooter  ctermfg=240
-    "hi StartifyFile    ctermfg=111
 <
 ==============================================================================
 vim: tw=78