use 'i' instead of 'e' for empty buffer

I guess most people are used to just write away via 'i' after entering
Vim. So this change adheres to them. (Say "Thanks!" to @Osse)

If you don't like this change consider creating an additional, hidden
key for creating the empty buffer:

let g:startify_empty_buffer_key = 'e'
This commit is contained in:
Marco Hinz 2013-04-28 13:30:05 +02:00
parent 5cfbde36c1
commit 80f6ca4323
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ function! s:insane_in_the_membrane() abort
endif
setfiletype startify
call append('$', ' [e] <empty buffer>')
call append('$', ' [i] <empty buffer>')
let cnt = 0
let sep = startify#get_sep()
@ -91,7 +91,7 @@ function! s:insane_in_the_membrane() abort
setlocal nomodifiable nomodified
nnoremap <buffer><silent> e :enew<cr>
nnoremap <buffer><silent> i :enew<cr>
nnoremap <buffer> <cr> :normal <c-r><c-w><cr>
nnoremap <buffer> <2-LeftMouse> :execute 'normal '. matchstr(getline('.'), '\w\+')<cr>
nnoremap <buffer> q

View file

@ -10,7 +10,7 @@ endif
syntax match startifyDelimiter /\[\|\]/
highlight link startifyDelimiter Delimiter
syntax match startifyNumber /\v\[[eq[:digit:]]+\]/hs=s+1,he=e-1 contains=startifyDelimiter
syntax match startifyNumber /\v\[[iq[:digit:]]+\]/hs=s+1,he=e-1 contains=startifyDelimiter
highlight link startifyNumber Number
let b:current_syntax = 'startify'