From f96d217c7000beb36bd558dd46ebc7483c1ece70 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 5 Aug 2013 15:04:01 +0200 Subject: [PATCH] Doc: add NERDTree hint to FAQ --- doc/startify.txt | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/doc/startify.txt b/doc/startify.txt index 8fb94ba..3b1a842 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -291,8 +291,22 @@ Example: (my terminal emulator supports 256 colors) ============================================================================== 6. FAQ (Or: Typical rants) *startify-faq* -"I don't want the start screen to use cursorline!" --------------------------------------------------- + +How do I get both NERDTree and Startify working at startup? +----------------------------------------------------------- + +Put this in your vimrc: + + autocmd VimEnter * + \ if !argc() | + \ Startify | + \ NERDTree | + \ execute "normal \w" | + \ endif + + +I don't want the start screen to use cursorline! +------------------------------------------------ Startify sets its own filetype "startify". Thus one could set buffer-local options like this: @@ -300,14 +314,14 @@ options like this: autocmd FileType startify setlocal nocursorline -"Last recently used files don't seem to get updated at :Startify!" ------------------------------------------------------------ +Last recently used files don't seem to get updated at :Startify! +---------------------------------------------------------------- It's because Vim loads the list from viminfo only once, at startup. -"I use iTerm2 and have broken colors when using sessions!" ----------------------------------------------------------- +I use iTerm2 and have broken colors when using sessions! +-------------------------------------------------------- Nothing this plugin could do about. Try playing around with 'sessionoptions'. Some people swear it works for them with these settings: