Skip to content

Commit

Permalink
User some helper variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mhinz committed Aug 10, 2013
1 parent f8c9b7d commit 8c09725
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions autoload/startify.vim
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,16 @@ endfunction

" Function: s:check_user_options {{{1
function! s:check_user_options() abort
let path = expand('%') . s:sep .'Session.vim'
let path = expand('%')
let session = path . s:sep .'Session.vim'

echom '>>> '. path
" autoload session
if get(g:, 'startify_session_autoload') && filereadable(path)
execute 'source' path
if get(g:, 'startify_session_autoload') && filereadable(session)
execute 'source' session
" change directory
elseif get(g:, 'startify_change_to_dir', 1)
if isdirectory(expand('%'))
if isdirectory(path)
lcd %
else
lcd %:h
Expand Down

0 comments on commit 8c09725

Please sign in to comment.