From f7c4e8a0cbf44baee28725eaafd637f809ba70f5 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 11 Jan 2017 16:55:45 +0100 Subject: [PATCH] Doc: update g:startify_session_delete_buffers References #262. --- doc/startify.txt | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/doc/startify.txt b/doc/startify.txt index 2889289..8e6a8ae 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -243,13 +243,18 @@ it on-the-fly, so that :Startify is always up-to-date. > let g:startify_session_autoload = 0 < -If you fire up "vim" in a directory that contains a "Session.vim", that session -will be loaded automatically. Otherwise it will be shown as the top entry in -the Startify buffer. +If this option is enabled and you start Vim in a directory that contains a +`Session.vim`, that session will be loaded automatically. Otherwise it will be +shown as the top entry in the Startify buffer. -This also works if you open a bookmarked directory. +The same happens when you |:cd| to a directory that contains a `Session.vim` +and execute |:Startify|. -Great way to create a portable project folder. +It also works if you open a bookmarked directory. See |g:startify_bookmarks|. + +This is great way to create a portable project folder! + +NOTE: This option is affected by |g:startify_session_delete_buffers|. ------------------------------------------------------------------------------ *g:startify_session_before_save* @@ -282,9 +287,14 @@ This also works for sessions started with: ------------------------------------------------------------------------------ *g:startify_session_delete_buffers* > - let g:startify_session_delete_buffers = 0 + let g:startify_session_delete_buffers = 1 < -Delete open buffers before loading a new session. +Delete all listed buffers when loading or closing a session. + + 1. When using |startify-:SLoad|. + 2. When using |startify-:SClose|. + 3. When using |g:startify_session_autoload|. + 4. When choosing a session from the Startify buffer. ------------------------------------------------------------------------------ *g:startify_change_to_dir* @@ -646,6 +656,9 @@ for one (Windows) or load the last used session (Unix). Providing only a part of the session name works too, if you complete the argument with either or afterwards. + +NOTE: This command is affected by |g:startify_session_delete_buffers|. + *startify-:SClose* > :SClose @@ -653,6 +666,8 @@ argument with either or afterwards. Save and close the current session, close all listed buffers, and open the Startify buffer. +NOTE: This command is affected by |g:startify_session_delete_buffers|. + ============================================================================== MAPPINGS *startify-mappings* @@ -938,7 +953,6 @@ This is my configuration.. let g:startify_update_oldfiles = 1 let g:startify_session_autoload = 1 let g:startify_session_persistence = 1 - let g:startify_session_delete_buffers = 1 let g:startify_skiplist = [ \ 'COMMIT_EDITMSG',