From fa9c61cb89a22862fc1308a0eda0a985c58b6514 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Tue, 23 Jun 2020 02:38:10 +0100 Subject: [PATCH] Updated session.vim. --- session.vim | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/session.vim b/session.vim index 2d331f1..ce94a3c 100644 --- a/session.vim +++ b/session.vim @@ -178,12 +178,12 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 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 exe s:l normal! zt -1 -normal! 0 +101 +normal! 05| tabnext edit grid.c set splitbelow splitright @@ -320,12 +320,12 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 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 exe s:l normal! zt -70 -normal! 05| +72 +normal! 0 tabnext edit grid.h set splitbelow splitright @@ -462,7 +462,7 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 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 exe s:l normal! zt @@ -604,7 +604,7 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 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 exe s:l normal! zt @@ -746,11 +746,11 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 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 exe s:l normal! zt -1 +4 normal! 0 tabnext edit makefile @@ -888,16 +888,16 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 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 exe s:l normal! zt -1 -normal! 0 +3 +normal! 06| tabnext 1 set stal=1 -badd +0 grid.c -badd +1 main.c +badd +1 grid.c +badd +0 main.c badd +1 vect.c badd +1 grid.h badd +1 vect.h @@ -916,7 +916,6 @@ if filereadable(s:sx) exe "source " . fnameescape(s:sx) endif let &so = s:so_save | let &siso = s:siso_save -nohlsearch doautoall SessionLoadPost unlet SessionLoad " vim: set ft=vim :