new option: g:startify_enable_special
If you set this variable to 0, [i] and [q] won't be shown.
This commit is contained in:
parent
c2dba47d38
commit
afea247ac7
|
@ -149,6 +149,12 @@ People can set this variable to 0, to work around that. As a consequence the
|
|||
start screen buffer won't be removed, even after triggering an action from the
|
||||
start screen.
|
||||
|
||||
============-
|
||||
|
||||
let g:startify_enable_special = 1
|
||||
|
||||
Don't show [i] and [q].
|
||||
|
||||
|
||||
==============================================================================
|
||||
4. Commands *startify-commands*
|
||||
|
|
|
@ -42,13 +42,19 @@ function! s:insane_in_the_membrane() abort
|
|||
endif
|
||||
setfiletype startify
|
||||
|
||||
call append('$', ' [i] <empty buffer>')
|
||||
let cnt = 0
|
||||
let special = get(g:, 'startify_enable_special', 1)
|
||||
let sep = startify#get_sep()
|
||||
let cnt = 0
|
||||
|
||||
if special
|
||||
call append('$', ' [i] <empty buffer>')
|
||||
endif
|
||||
|
||||
if get(g:, 'startify_show_files', 1) && !empty(v:oldfiles)
|
||||
let numfiles = get(g:, 'startify_show_files_number', 10)
|
||||
call append('$', '')
|
||||
if special
|
||||
call append('$', '')
|
||||
endif
|
||||
for fname in v:oldfiles
|
||||
let expfname = expand(fname)
|
||||
if !filereadable(expfname) || (exists('g:startify_skiplist') && startify#process_skiplist(expfname))
|
||||
|
@ -87,7 +93,9 @@ function! s:insane_in_the_membrane() abort
|
|||
endfor
|
||||
endif
|
||||
|
||||
call append('$', ['', ' [q] <quit>'])
|
||||
if special
|
||||
call append('$', ['', ' [q] <quit>'])
|
||||
endif
|
||||
|
||||
setlocal nomodifiable nomodified
|
||||
|
||||
|
@ -109,7 +117,7 @@ function! s:insane_in_the_membrane() abort
|
|||
autocmd startify CursorMoved <buffer> call s:set_cursor()
|
||||
autocmd startify BufWipeout <buffer> autocmd! startify *
|
||||
|
||||
call cursor(4, 5)
|
||||
call cursor(special ? 4 : 2, 5)
|
||||
endfunction
|
||||
|
||||
" Function: s:set_cursor {{{1
|
||||
|
|
Loading…
Reference in a new issue