Updated session.vim.

This commit is contained in:
Sheldon Lee 2020-06-23 02:38:10 +01:00
parent 3b8ed228d5
commit fa9c61cb89

View File

@ -178,12 +178,12 @@ setlocal nowinfixwidth
setlocal wrap setlocal wrap
setlocal wrapmargin=0 setlocal wrapmargin=0
silent! normal! zE silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 27) / 54) let s:l = 101 - ((48 * winheight(0) + 24) / 49)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
exe s:l exe s:l
normal! zt normal! zt
1 101
normal! 0 normal! 05|
tabnext tabnext
edit grid.c edit grid.c
set splitbelow splitright set splitbelow splitright
@ -320,12 +320,12 @@ setlocal nowinfixwidth
setlocal wrap setlocal wrap
setlocal wrapmargin=0 setlocal wrapmargin=0
silent! normal! zE silent! normal! zE
let s:l = 70 - ((19 * winheight(0) + 27) / 54) let s:l = 72 - ((19 * winheight(0) + 24) / 49)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
exe s:l exe s:l
normal! zt normal! zt
70 72
normal! 05| normal! 0
tabnext tabnext
edit grid.h edit grid.h
set splitbelow splitright set splitbelow splitright
@ -462,7 +462,7 @@ setlocal nowinfixwidth
setlocal wrap setlocal wrap
setlocal wrapmargin=0 setlocal wrapmargin=0
silent! normal! zE silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 27) / 54) let s:l = 1 - ((0 * winheight(0) + 24) / 49)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
exe s:l exe s:l
normal! zt normal! zt
@ -604,7 +604,7 @@ setlocal nowinfixwidth
setlocal wrap setlocal wrap
setlocal wrapmargin=0 setlocal wrapmargin=0
silent! normal! zE silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 27) / 54) let s:l = 1 - ((0 * winheight(0) + 24) / 49)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
exe s:l exe s:l
normal! zt normal! zt
@ -746,11 +746,11 @@ setlocal nowinfixwidth
setlocal wrap setlocal wrap
setlocal wrapmargin=0 setlocal wrapmargin=0
silent! normal! zE silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 27) / 54) let s:l = 4 - ((3 * winheight(0) + 24) / 49)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
exe s:l exe s:l
normal! zt normal! zt
1 4
normal! 0 normal! 0
tabnext tabnext
edit makefile edit makefile
@ -888,16 +888,16 @@ setlocal nowinfixwidth
setlocal wrap setlocal wrap
setlocal wrapmargin=0 setlocal wrapmargin=0
silent! normal! zE silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 27) / 54) let s:l = 3 - ((2 * winheight(0) + 24) / 49)
if s:l < 1 | let s:l = 1 | endif if s:l < 1 | let s:l = 1 | endif
exe s:l exe s:l
normal! zt normal! zt
1 3
normal! 0 normal! 06|
tabnext 1 tabnext 1
set stal=1 set stal=1
badd +0 grid.c badd +1 grid.c
badd +1 main.c badd +0 main.c
badd +1 vect.c badd +1 vect.c
badd +1 grid.h badd +1 grid.h
badd +1 vect.h badd +1 vect.h
@ -916,7 +916,6 @@ if filereadable(s:sx)
exe "source " . fnameescape(s:sx) exe "source " . fnameescape(s:sx)
endif endif
let &so = s:so_save | let &siso = s:siso_save let &so = s:so_save | let &siso = s:siso_save
nohlsearch
doautoall SessionLoadPost doautoall SessionLoadPost
unlet SessionLoad unlet SessionLoad
" vim: set ft=vim : " vim: set ft=vim :