Startify basically provides two things:
1) If you start Vim without giving any filenames to it (or pipe stuff to it so it reads from STDIN), startify will show a small but pretty start screen which shows recently used files (using viminfo) and sessions by default.
Additionally, you can define bookmarks, thus entries for files that always should be available in the start screen.
You can either navigate to a certain menu entry and hit enter or you just key in whatever is written between the square brackets on that line. You can even double-click anywhere on the line now.
In addtion, e
creates an empty buffer, i
creates an empty buffers and
jumps into insert mode, q
quits.
Moreover, you can open several files at one go. Navigate to an entry and
hit either b
(open in same window), s
(open in split) or v
(open in
vertical split). You can do that for multiple entries. You can also mix
them. The order of the selections will be remembered. Afterwards execute
these actions via <cr>
.
When the selection is finished, Startify will close automatically. You can reopen the screen via :Startify.
2) It eases handling of loading and saving sessions by only working with a certain directory. These commands are used for convenience:
:SLoad load a session
:SSave save a session
:SDelete delete a session
NOTE: These commands can also take session names directly as an argument. You can
also make use of completion via <c-d>
and <tab>
.
The default settings are pretty sane, so it should work without any configuration.
NOTE: The colors shown in the screenshot are not the default. If you want to
tune the default colors, you can overwrite the highlight groups used by startify
in your vimrc. Have a look at :h startify-colors
, after installing the plugin.
Moreover, g:startify_enable_special is set to 0.
If you like any of my plugins, star it on github. This is a great way of getting feedback! Same for issues or feature requests.
Thank you for flying mhi airlines. Get the Vim on!
If you have no preferred installation method, I suggest using tpope's pathogen:
- git clone https://github.com/tpope/vim-pathogen ~/.vim/bundle/vim-pathogen
- mkdir -p ~/.vim/autoload && cd ~/.vim/autoload
- ln -s ../bundle/vim-pathogen/autoload/pathogen.vim
Afterwards installing vim-startify is as easy as pie:
- git clone https://github.com/mhinz/vim-startify ~/.vim/bundle/vim-startify
- start Vim
- :Helptags
- :h startify
:h startify
Marco Hinz <mh.codebro@gmail.com>
Copyright © Marco Hinz. Distributed under the same terms as Vim itself. See
:help license
.