startify.txt 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. *startify.txt* Showing recently used files like a boss.
  2. *startify*
  3. __ __ ___
  4. /\ \__ /\ \__ __ /'___\
  5. ____\ \ ,_\ __ _ __\ \ ,_\/\_\/\ \__/ __ __
  6. /',__\\ \ \/ /'__`\ /\`'__\ \ \/\/\ \ \ ,__\/\ \/\ \
  7. /\__, `\\ \ \_/\ \L\.\_\ \ \/ \ \ \_\ \ \ \ \_/\ \ \_\ \
  8. \/\____/ \ \__\ \__/.\_\\ \_\ \ \__\\ \_\ \_\ \/`____ \
  9. \/___/ \/__/\/__/\/_/ \/_/ \/__/ \/_/\/_/ `/___/> \
  10. /\___/
  11. \/__/
  12. ==============================================================================
  13. CONTENTS *startify-contents*
  14. 1.Intro..........................................|startify-intro|
  15. 2.Usage..........................................|startify-usage|
  16. 3.Options........................................|startify-options|
  17. 4.Commands.......................................|startify-commands|
  18. 5.FAQ............................................|startify-faq|
  19. 6.Author.........................................|startify-author|
  20. 7.License........................................|startify-license|
  21. ==============================================================================
  22. 1. Intro *startify-intro*
  23. Startify is a zero-conf plugin which shows recently used files, bookmarks and
  24. sessions that were saved to a certain directory.
  25. ==============================================================================
  26. 2. Usage *startify-usage*
  27. Startify basically provides two things:
  28. 1) If you start Vim without giving any filenames to it (or pipe stuff to it so
  29. it reads from STDIN), startify will show a small but pretty start screen
  30. which shows recently used files (using viminfo) and sessions by default.
  31. Additionally, you can define bookmarks, thus entries for files that always
  32. should be available in the start screen.
  33. You can either navigate to a certain menu entry and hit enter or you just
  34. key in whatever is written between the square brackets on that line.
  35. Per default the startify buffer gets closed automatically, if an entry was
  36. selected.
  37. You can reopen the screen via :Startify.
  38. 2) It eases handling of loading and saving sessions by only working with a
  39. certain directory. Two commands are used for convenience:
  40. :SLoad load a session
  41. :SSave save a session
  42. The default settings are pretty sane, so it should work without any
  43. configuration.
  44. ==============================================================================
  45. 3. Options *startify-options*
  46. Put these variables into your vimrc. The shown assignments are also the
  47. default values.
  48. ============-
  49. let g:startify_session_dir = '~/.vim/session'
  50. The directory to save/load sessions to/from.
  51. The default for Windows systems is '$HOME\vimfiles\session'.
  52. ============-
  53. let g:startify_show_sessions = 1
  54. List saved sessions in g:startify_session_dir.
  55. ============-
  56. let g:startify_show_files = 1
  57. List recently used files using viminfo.
  58. ============-
  59. let g:startify_show_files_number = 10
  60. The amount of files to list.
  61. ============-
  62. let g:startify_bookmarks = [ '~/.vimrc' ]
  63. A list of files to bookmark. Those files will always be shown at the bottom of
  64. the start screen.
  65. ============-
  66. let g:startify_skiplist = []
  67. A list of Vim regular expressions to filter recently used files.
  68. Example: let g:startify_skiplist = [
  69. \ 'COMMIT_EDITMSG',
  70. \ $VIMRUNTIME .'/doc',
  71. \ 'bundle/.*/doc'
  72. \ ]
  73. ============-
  74. let g:startify_unlisted_buffer = 1
  75. Some bad plugins like minibufexpl break, when there is no listed buffer.
  76. People can set this variable to 0, to work around that. As a consequence the
  77. start screen buffer won't be removed, even after triggering an action from the
  78. start screen.
  79. ==============================================================================
  80. 4. Commands *startify-commands*
  81. :SLoad load a session
  82. :SSave save a session
  83. These take either 0 or 1 argument. If you don't specify the session name as an
  84. argument, they will just ask for it.
  85. Providing only a part of the session name works too, if you complete the
  86. argument with either <c-d> or <tab> afterwards.
  87. :Startify
  88. Open the startify buffer.
  89. ==============================================================================
  90. 5. FAQ *startify-faq*
  91. "I don't want the start screen to use cursorline!"
  92. --------------------------------------------------
  93. Startify sets its own filetype "startify". Thus one could set buffer-local
  94. options like this:
  95. autocmd FileType startify setlocal nocursorline
  96. "Last recently used files don't seem to get updated at :Startify!"
  97. -----------------------------------------------------------
  98. It's because Vim loads the list from viminfo only once, at startup.
  99. ==============================================================================
  100. 6. About the author *startify-author*
  101. My nick on Freenode IRC is mhi^.
  102. For latest developments: https://github.com/mhinz
  103. If you use any of my plugins, star it on github. This is a great way of
  104. getting feedback! Same for issues or feature requests.
  105. Thank you for flying mhi airlines. Get the Vim on!
  106. ==============================================================================
  107. 7. Licence *startify-license*
  108. Copyright © Marco Hinz. Distributed under the same terms as Vim itself.
  109. See |license|.
  110. vim: tw=78