diff --git a/session.vim b/session.vim index 0482d44..2d331f1 100644 --- a/session.vim +++ b/session.vim @@ -19,7 +19,6 @@ set smartindent set suffixes=.bak,~,.o,.info,.swp,.aux,.bbl,.blg,.brf,.cb,.dvi,.idx,.ilg,.ind,.inx,.jpg,.log,.out,.png,.toc set tabstop=4 set undodir=~/.cache/vim/undo// -set window=55 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 let v:this_session=expand(":p") silent only @@ -321,12 +320,12 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 silent! normal! zE -let s:l = 41 - ((17 * winheight(0) + 27) / 54) +let s:l = 70 - ((19 * winheight(0) + 27) / 54) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -41 -normal! 035| +70 +normal! 05| tabnext edit grid.h set splitbelow splitright @@ -747,7 +746,7 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 silent! normal! zE -let s:l = 1 - ((0 * winheight(0) + 27) / 55) +let s:l = 1 - ((0 * winheight(0) + 27) / 54) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt @@ -889,13 +888,13 @@ setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 silent! normal! zE -let s:l = 1 - ((0 * winheight(0) + 27) / 55) +let s:l = 1 - ((0 * winheight(0) + 27) / 54) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt 1 normal! 0 -tabnext 2 +tabnext 1 set stal=1 badd +0 grid.c badd +1 main.c @@ -905,6 +904,7 @@ badd +1 vect.h badd +1 makefile badd +17 ~/.vimrc badd +1 ~/.vimrs +badd +12 session.vim if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 silent exe 'bwipe ' . s:wipebuf endif @@ -916,6 +916,7 @@ 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 :