Просмотр исходного кода

Scroll window to top as much as possible

This way you'll see as much as possible from a potential header.

The reverse (making the current line the top line in the window) could be done
via..

    autocmd User Startified normal! zt

..or centerered via..

    autocmd User Startified normal! zz

Fixes https://github.com/mhinz/vim-startify/issues/391
Marco Hinz 6 лет назад
Родитель
Сommit
ae10ca5152
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      autoload/startify.vim

+ 1 - 0
autoload/startify.vim

@@ -149,6 +149,7 @@ function! startify#insane_in_the_membrane(on_vimenter) abort
   autocmd startify CursorMoved <buffer> call s:set_cursor()
   autocmd startify CursorMoved <buffer> call s:set_cursor()
 
 
   silent! %foldopen!
   silent! %foldopen!
+  normal! zb
   set filetype=startify
   set filetype=startify
 
 
   if exists('##DirChanged')
   if exists('##DirChanged')