Move variables to the bottom
This commit is contained in:
parent
e1be54148e
commit
b98f7a5a93
|
@ -9,38 +9,16 @@ if exists('g:autoloaded_startify') || &compatible
|
||||||
endif
|
endif
|
||||||
let g:autoloaded_startify = 1
|
let g:autoloaded_startify = 1
|
||||||
|
|
||||||
" Init: values {{{1
|
" Function: #get_lastline {{{1
|
||||||
let s:numfiles = get(g:, 'startify_files_number', 10)
|
function! startify#get_lastline() abort
|
||||||
let s:show_special = get(g:, 'startify_enable_special', 1)
|
return b:startify.lastline + 1
|
||||||
let s:relative_path = get(g:, 'startify_relative_path') ? ':~:.' : ':p:~'
|
endfunction
|
||||||
let s:session_dir = resolve(expand(get(g:, 'startify_session_dir',
|
|
||||||
\ has('win32') ? '$HOME\vimfiles\session' :
|
|
||||||
\ has('nvim') ? stdpath('data') . '/session' : '~/.vim/session')))
|
|
||||||
let s:tf = exists('g:startify_transformations')
|
|
||||||
|
|
||||||
let s:skiplist = get(g:, 'startify_skiplist', [
|
|
||||||
\ 'COMMIT_EDITMSG',
|
|
||||||
\ 'runtime/doc/.*\.txt',
|
|
||||||
\ 'bundle/.*/doc/.*\.txt',
|
|
||||||
\ 'plugged/.*/doc/.*\.txt',
|
|
||||||
\ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc/.*\.txt',
|
|
||||||
\ ])
|
|
||||||
|
|
||||||
let s:padding_left = repeat(' ', get(g:, 'startify_padding_left', 3))
|
|
||||||
let s:fixed_column = len(s:padding_left) + 2
|
|
||||||
|
|
||||||
" Function: #get_separator {{{1
|
" Function: #get_separator {{{1
|
||||||
function! startify#get_separator() abort
|
function! startify#get_separator() abort
|
||||||
return !exists('+shellslash') || &shellslash ? '/' : '\'
|
return !exists('+shellslash') || &shellslash ? '/' : '\'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let s:sep = startify#get_separator()
|
|
||||||
|
|
||||||
" Function: #get_lastline {{{1
|
|
||||||
function! startify#get_lastline() abort
|
|
||||||
return b:startify.lastline + 1
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Function: #insane_in_the_membrane {{{1
|
" Function: #insane_in_the_membrane {{{1
|
||||||
function! startify#insane_in_the_membrane(on_vimenter) abort
|
function! startify#insane_in_the_membrane(on_vimenter) abort
|
||||||
" Handle vim -y, vim -M.
|
" Handle vim -y, vim -M.
|
||||||
|
@ -1037,3 +1015,25 @@ function! s:warn(msg) abort
|
||||||
echomsg 'startify: '. a:msg
|
echomsg 'startify: '. a:msg
|
||||||
echohl NONE
|
echohl NONE
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Init: values {{{1
|
||||||
|
let s:sep = startify#get_separator()
|
||||||
|
|
||||||
|
let s:numfiles = get(g:, 'startify_files_number', 10)
|
||||||
|
let s:show_special = get(g:, 'startify_enable_special', 1)
|
||||||
|
let s:relative_path = get(g:, 'startify_relative_path') ? ':~:.' : ':p:~'
|
||||||
|
let s:tf = exists('g:startify_transformations')
|
||||||
|
let s:session_dir = resolve(expand(get(g:, 'startify_session_dir',
|
||||||
|
\ has('win32') ? '$HOME\vimfiles\session' :
|
||||||
|
\ has('nvim') ? stdpath('data') . '/session' : '~/.vim/session')))
|
||||||
|
|
||||||
|
let s:skiplist = get(g:, 'startify_skiplist', [
|
||||||
|
\ 'COMMIT_EDITMSG',
|
||||||
|
\ 'runtime/doc/.*\.txt',
|
||||||
|
\ 'bundle/.*/doc/.*\.txt',
|
||||||
|
\ 'plugged/.*/doc/.*\.txt',
|
||||||
|
\ escape(fnamemodify(resolve($VIMRUNTIME), ':p'), '\') .'doc/.*\.txt',
|
||||||
|
\ ])
|
||||||
|
|
||||||
|
let s:padding_left = repeat(' ', get(g:, 'startify_padding_left', 3))
|
||||||
|
let s:fixed_column = len(s:padding_left) + 2
|
||||||
|
|
Loading…
Reference in a new issue