Преглед на файлове

'e' -> empty, 'i' -> empty + insert mode

Marco Hinz преди 12 години
родител
ревизия
74a5d12785
променени са 3 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 2 1
      README.md
  2. 2 1
      doc/startify.txt
  3. 1 1
      plugin/startify.vim

+ 2 - 1
README.md

@@ -19,7 +19,8 @@ _1)_ If you start Vim without giving any filenames to it (or pipe stuff to it so
 
    You can reopen the screen via :Startify.
 
-   If you want to open an empty buffer, hit either 'e' or 'i'. Quit via 'q'.
+   Moreover, 'e' creates an empty buffer, 'i' creates an empty buffers and
+   jumps into insert mode, 'q' quits.
 
 _2)_ It eases handling of loading and saving sessions by only working with a
    certain directory. Two commands are used for convenience:

+ 2 - 1
doc/startify.txt

@@ -54,7 +54,8 @@ Startify basically provides two things:
 
    You can reopen the screen via :Startify.
 
-   If you want to open an empty buffer, hit either 'e' or 'i'. Quit via 'q'.
+   Moreover, 'e' creates an empty buffer, 'i' creates an empty buffers and
+   jumps into insert mode, 'q' quits.
 
 2) It eases handling of loading and saving sessions by only working with a
    certain directory. Two commands are used for convenience:

+ 1 - 1
plugin/startify.vim

@@ -100,7 +100,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><silent> i :enew <bar> startinsert<cr>
   nnoremap <buffer> <cr> :normal <c-r><c-w><cr>
   nnoremap <buffer> <2-LeftMouse> :execute 'normal '. matchstr(getline('.'), '\w\+')<cr>
   nnoremap <buffer> q