瀏覽代碼

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'
Marco Hinz 12 年之前
父節點
當前提交
80f6ca4323
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      plugin/startify.vim
  2. 1 1
      syntax/startify.vim

+ 2 - 2
plugin/startify.vim

@@ -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

+ 1 - 1
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'