From 80f6ca432358ca9de98136e19a9578bbaf8f0f56 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sun, 28 Apr 2013 13:30:05 +0200 Subject: [PATCH] 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' --- plugin/startify.vim | 4 ++-- syntax/startify.vim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/startify.vim b/plugin/startify.vim index e2a0302..84875d4 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -42,7 +42,7 @@ function! s:insane_in_the_membrane() abort endif setfiletype startify - call append('$', ' [e] ') + call append('$', ' [i] ') let cnt = 0 let sep = startify#get_sep() @@ -91,7 +91,7 @@ function! s:insane_in_the_membrane() abort setlocal nomodifiable nomodified - nnoremap e :enew + nnoremap i :enew nnoremap :normal nnoremap <2-LeftMouse> :execute 'normal '. matchstr(getline('.'), '\w\+') nnoremap q diff --git a/syntax/startify.vim b/syntax/startify.vim index a3b9883..e50eb8e 100644 --- a/syntax/startify.vim +++ b/syntax/startify.vim @@ -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'