new: g:startify_empty_buffer_key

This variable can be used to create a second mapping for creating the
empty buffer.

Closes #10.
This commit is contained in:
Marco Hinz 2013-04-27 09:57:11 +02:00
parent 3bcbf22de1
commit 674e49816d
2 changed files with 22 additions and 7 deletions

View file

@ -92,6 +92,10 @@ function! s:insane_in_the_membrane() abort
nnoremap <buffer><silent> e :enew<cr>
nnoremap <buffer><silent> <cr> :normal <c-r><c-w><cr>
if exists('g:startify_empty_buffer_key')
execute 'nnoremap <buffer><silent> '. g:startify_empty_buffer_key .' :enew<cr>'
endif
autocmd! startify *
autocmd startify CursorMoved <buffer> call s:set_cursor()
autocmd startify BufWipeout <buffer> autocmd! startify *