README.adoc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. image:https://github.com/mhinz/vim-startify/raw/master/startify.png[Startify in action!]
  2. That's it. A fancy start screen for Vim. _(almost all visible features enabled - freely customizable)_
  3. ---
  4. * <<what-does-it-provide,What does it provide?>>
  5. . <<it-shows-things-on-start,List files and directories>>
  6. . <<powerful-menu-handling,Powerful menu entry handling>>
  7. . <<easy-session-handling,Easy session handling>>
  8. * <<installation-and-documentation,Installation & Documentation>>
  9. * <<author-and-feedback,Author and Feedback>>
  10. * <<license,License>>
  11. ---
  12. == What does it provide?
  13. It does 3 things that will be explained in detail further below:
  14. === It shows things on start!
  15. If you start Vim without giving any filenames or piping text to it, Startify
  16. will show a pretty start screen that shows a configurable list of files or
  17. directories:
  18. - *Custom header*: How about some ASCII art action?
  19. Perhaps even dynamically generated?
  20. * _Default:_ `<empty>`
  21. - *Recently used files from directory*: List recently modified files
  22. from the current directory recursively. The list can also be filtered.
  23. * _Default:_ `<enabled>`
  24. - *Recently used files*: List recently used files. The
  25. list can also be filtered.
  26. * _Default:_ `<enabled>`
  27. - *Sessions*: List all your sessions from a certain
  28. directory.
  29. * _Default:_ `~/.vim/session`
  30. - *Bookmarks*: Define bookmarks, thus entries for files that will always be
  31. listed.
  32. * _Default:_ `<empty>`
  33. - *Custom footer*: Same as the custom header.. but at the
  34. bottom.
  35. * _Default:_ `<empty>`
  36. TIP: See `:h startify-options` for more information.
  37. ==== Powerful menu handling
  38. You can either navigate the menu by using the usual suspects (`j`, `G`, `}`
  39. etc.) and hit `<cr>` or just key in whatever is written between the square
  40. brackets on that line. You can even double-click anywhere on the line.
  41. Moreover, you can open several files at one go! Navigate to an entry and hit
  42. either `b` (open in same window), `s` (open in split), `v` (open in vertical
  43. split) or `t` (open in tab) for marking it. You can mark several entries and
  44. also mix different markers. Afterwards execute all the markers in the order
  45. they were given via `<cr>`.
  46. In case you don't want to open a file, there is also `e` for creating an empty
  47. buffer, `i` for creating an empty buffer and jumping into insert mode and `q`
  48. for quitting.
  49. When one or more files were opened by Startify, it will close automatically.
  50. You can always reopen the screen via `:Startify`.
  51. ==== Easy session handling
  52. TIP: Please read and understand `:help 'sessionoptions'` if you work with
  53. sessions.
  54. Essentially there are two supported workflows for handling sessions that will
  55. be shown here:
  56. *The Startify way:*
  57. The handling of loading, saving and deleting sessions is eased by always
  58. working with one and the same directory. These commands are used for
  59. convenience:
  60. :SLoad load a session
  61. :SSave save a session
  62. :SDelete delete a session
  63. TIP: See `:h startify-commands` for more information.
  64. The advantage of always using the same directory is that Startify can
  65. conveniently show you a list of all your sessions.
  66. *The old way:*
  67. The old way means using `:mksession` to save a `Session.vim` file to the
  68. current directory. Imagine a project folder with a Session.vim at its root
  69. directory. This way makes it very portable.
  70. When Vim gets started and the file Session.vim is found in the current
  71. directory, it will be shown at the top of all lists as entry `[0]` as a
  72. shortcut.
  73. If you bookmark a directory (project folder, anyone?) that contains a
  74. Session.vim, and you access that directory via Startify, that session will be
  75. loaded automatically.
  76. *Optionally:*
  77. There is even support for *persistent sessions*. Thus you load a session via
  78. Startify, add some buffers, remove some buffers, change the window layout, ..
  79. and when you finish and exit Vim, the session will be saved automatically. This
  80. works for both ways of handling sessions.
  81. TIP: Read `:help startify-options` to learn more about how to configure session
  82. handling to your liking.
  83. == Installation and Documentation
  84. If you have no preferred installation method, I suggest using tpope's
  85. https://github.com/tpope/vim-pathogen[vim-pathogen]. Afterwards installing
  86. vim-startify is as easy as pie:
  87. $ git clone https://github.com/mhinz/vim-startify ~/.vim/bundle/vim-startify
  88. $ vim
  89. It works without any configuration, but you might want to look into the
  90. documentation for further customization:
  91. :Helptags " rebuilding tags files
  92. :h startify
  93. :h startify-faq
  94. == Author and Feedback
  95. If you like my plugins, please star them on Github. It's a great way of getting
  96. feedback. Same goes for issues reports or feature requests.
  97. *Names:* Marco Hinz, mhinz, mhi^, mhi
  98. *Mail:* `<mh.codebro@gmail.com>`
  99. *Twitter:* https://twitter.com/\_mhinz_[@\_mhinz_]
  100. *Stackoverflow:* http://stackoverflow.com/users/1606959/mhinz[mhinz]
  101. _Thank you for flying mhi airlines. Get your Vim on!_
  102. == License
  103. MIT license. Copyright (c) 2014 Marco Hinz.