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:
parent
5cfbde36c1
commit
80f6ca4323
|
@ -42,7 +42,7 @@ function! s:insane_in_the_membrane() abort
|
||||||
endif
|
endif
|
||||||
setfiletype startify
|
setfiletype startify
|
||||||
|
|
||||||
call append('$', ' [e] <empty buffer>')
|
call append('$', ' [i] <empty buffer>')
|
||||||
let cnt = 0
|
let cnt = 0
|
||||||
let sep = startify#get_sep()
|
let sep = startify#get_sep()
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ function! s:insane_in_the_membrane() abort
|
||||||
|
|
||||||
setlocal nomodifiable nomodified
|
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> <cr> :normal <c-r><c-w><cr>
|
||||||
nnoremap <buffer> <2-LeftMouse> :execute 'normal '. matchstr(getline('.'), '\w\+')<cr>
|
nnoremap <buffer> <2-LeftMouse> :execute 'normal '. matchstr(getline('.'), '\w\+')<cr>
|
||||||
nnoremap <buffer> q
|
nnoremap <buffer> q
|
||||||
|
|
|
@ -10,7 +10,7 @@ endif
|
||||||
syntax match startifyDelimiter /\[\|\]/
|
syntax match startifyDelimiter /\[\|\]/
|
||||||
highlight link startifyDelimiter Delimiter
|
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
|
highlight link startifyNumber Number
|
||||||
|
|
||||||
let b:current_syntax = 'startify'
|
let b:current_syntax = 'startify'
|
||||||
|
|
Loading…
Reference in a new issue