codebased/session.vim
2023-04-13 02:28:08 +02:00

465 lines
11 KiB
VimL

let SessionLoad = 1
let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1
let v:this_session=expand("<sfile>:p")
silent only
silent tabonly
cd ~/Workspace/codebased
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
let s:shortmess_save = &shortmess
if &shortmess =~ 'A'
set shortmess=aoOA
else
set shortmess=aoO
endif
badd +258 scirpt/lexer.c
badd +0 include/scirpt/lexer.h
badd +29 scirpt/lexer.h
badd +11 include/scirpt/token.h
badd +18 term://~/Workspace/codebased//21887:/bin/bash
badd +32 include/utils/stringmap.h
badd +3 utils/stringmap.h
badd +39 utils/stringmap.c
badd +13 scirpt/main.c
badd +26 include/scirpt/ast.h
badd +27 include/scirpt/parser.h
badd +30 scirpt/parser.h
badd +61 scirpt/parser.c
badd +17 scirpt/ast.c
badd +19 include/utils/math.h
badd +9 include/utils/string.h
badd +59 include/utils/generic_array.h
badd +9 include/utils/string_array.h
badd +17 Makefile
argglobal
%argdel
set stal=2
tabnew +setlocal\ bufhidden=wipe
tabnew +setlocal\ bufhidden=wipe
tabnew +setlocal\ bufhidden=wipe
tabrewind
edit scirpt/main.c
let s:save_splitbelow = &splitbelow
let s:save_splitright = &splitright
set splitbelow splitright
wincmd _ | wincmd |
vsplit
1wincmd h
wincmd w
let &splitbelow = s:save_splitbelow
let &splitright = s:save_splitright
wincmd t
let s:save_winminheight = &winminheight
let s:save_winminwidth = &winminwidth
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
exe 'vert 1resize ' . ((&columns * 127 + 127) / 255)
exe 'vert 2resize ' . ((&columns * 127 + 127) / 255)
argglobal
balt Makefile
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 30 - ((29 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 30
normal! 076|
wincmd w
argglobal
if bufexists(fnamemodify("term://~/Workspace/codebased//21887:/bin/bash", ":p")) | buffer term://~/Workspace/codebased//21887:/bin/bash | else | edit term://~/Workspace/codebased//21887:/bin/bash | endif
if &buftype ==# 'terminal'
silent file term://~/Workspace/codebased//21887:/bin/bash
endif
balt scirpt/lexer.c
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
let s:l = 164 - ((28 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 164
normal! 031|
wincmd w
2wincmd w
exe 'vert 1resize ' . ((&columns * 127 + 127) / 255)
exe 'vert 2resize ' . ((&columns * 127 + 127) / 255)
tabnext
edit include/utils/stringmap.h
let s:save_splitbelow = &splitbelow
let s:save_splitright = &splitright
set splitbelow splitright
wincmd _ | wincmd |
vsplit
1wincmd h
wincmd _ | wincmd |
split
1wincmd k
wincmd w
wincmd w
let &splitbelow = s:save_splitbelow
let &splitright = s:save_splitright
wincmd t
let s:save_winminheight = &winminheight
let s:save_winminwidth = &winminwidth
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
exe '1resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 1resize ' . ((&columns * 127 + 127) / 255)
exe '2resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 2resize ' . ((&columns * 127 + 127) / 255)
exe 'vert 3resize ' . ((&columns * 127 + 127) / 255)
argglobal
balt term://~/Workspace/codebased//21887:/bin/bash
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 29 - ((22 * winheight(0) + 16) / 32)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 29
normal! 037|
wincmd w
argglobal
if bufexists(fnamemodify("utils/stringmap.h", ":p")) | buffer utils/stringmap.h | else | edit utils/stringmap.h | endif
if &buftype ==# 'terminal'
silent file utils/stringmap.h
endif
balt include/utils/stringmap.h
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 14 - ((13 * winheight(0) + 16) / 32)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 14
normal! 022|
wincmd w
argglobal
if bufexists(fnamemodify("include/utils/generic_array.h", ":p")) | buffer include/utils/generic_array.h | else | edit include/utils/generic_array.h | endif
if &buftype ==# 'terminal'
silent file include/utils/generic_array.h
endif
balt include/utils/string.h
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 36 - ((35 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 36
normal! 014|
wincmd w
exe '1resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 1resize ' . ((&columns * 127 + 127) / 255)
exe '2resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 2resize ' . ((&columns * 127 + 127) / 255)
exe 'vert 3resize ' . ((&columns * 127 + 127) / 255)
tabnext
edit include/scirpt/token.h
let s:save_splitbelow = &splitbelow
let s:save_splitright = &splitright
set splitbelow splitright
wincmd _ | wincmd |
vsplit
wincmd _ | wincmd |
vsplit
2wincmd h
wincmd w
wincmd _ | wincmd |
split
1wincmd k
wincmd w
wincmd w
let &splitbelow = s:save_splitbelow
let &splitright = s:save_splitright
wincmd t
let s:save_winminheight = &winminheight
let s:save_winminwidth = &winminwidth
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
exe 'vert 1resize ' . ((&columns * 46 + 127) / 255)
exe '2resize ' . ((&lines * 19 + 34) / 68)
exe 'vert 2resize ' . ((&columns * 79 + 127) / 255)
exe '3resize ' . ((&lines * 45 + 34) / 68)
exe 'vert 3resize ' . ((&columns * 79 + 127) / 255)
exe 'vert 4resize ' . ((&columns * 128 + 127) / 255)
argglobal
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 22 - ((21 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 22
normal! 025|
wincmd w
argglobal
if bufexists(fnamemodify("include/scirpt/lexer.h", ":p")) | buffer include/scirpt/lexer.h | else | edit include/scirpt/lexer.h | endif
if &buftype ==# 'terminal'
silent file include/scirpt/lexer.h
endif
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 1 - ((0 * winheight(0) + 9) / 19)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 1
normal! 09|
wincmd w
argglobal
if bufexists(fnamemodify("scirpt/lexer.h", ":p")) | buffer scirpt/lexer.h | else | edit scirpt/lexer.h | endif
if &buftype ==# 'terminal'
silent file scirpt/lexer.h
endif
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 39 - ((38 * winheight(0) + 22) / 45)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 39
normal! 06|
wincmd w
argglobal
if bufexists(fnamemodify("scirpt/lexer.c", ":p")) | buffer scirpt/lexer.c | else | edit scirpt/lexer.c | endif
if &buftype ==# 'terminal'
silent file scirpt/lexer.c
endif
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 11 - ((10 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 11
normal! 041|
wincmd w
exe 'vert 1resize ' . ((&columns * 46 + 127) / 255)
exe '2resize ' . ((&lines * 19 + 34) / 68)
exe 'vert 2resize ' . ((&columns * 79 + 127) / 255)
exe '3resize ' . ((&lines * 45 + 34) / 68)
exe 'vert 3resize ' . ((&columns * 79 + 127) / 255)
exe 'vert 4resize ' . ((&columns * 128 + 127) / 255)
tabnext
edit include/scirpt/ast.h
let s:save_splitbelow = &splitbelow
let s:save_splitright = &splitright
set splitbelow splitright
wincmd _ | wincmd |
vsplit
wincmd _ | wincmd |
vsplit
2wincmd h
wincmd w
wincmd _ | wincmd |
split
1wincmd k
wincmd w
wincmd w
let &splitbelow = s:save_splitbelow
let &splitright = s:save_splitright
wincmd t
let s:save_winminheight = &winminheight
let s:save_winminwidth = &winminwidth
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
exe 'vert 1resize ' . ((&columns * 60 + 127) / 255)
exe '2resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 2resize ' . ((&columns * 88 + 127) / 255)
exe '3resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 3resize ' . ((&columns * 88 + 127) / 255)
exe 'vert 4resize ' . ((&columns * 105 + 127) / 255)
argglobal
balt scirpt/lexer.c
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 22 - ((21 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 22
normal! 024|
wincmd w
argglobal
if bufexists(fnamemodify("include/scirpt/parser.h", ":p")) | buffer include/scirpt/parser.h | else | edit include/scirpt/parser.h | endif
if &buftype ==# 'terminal'
silent file include/scirpt/parser.h
endif
balt include/scirpt/ast.h
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 27 - ((26 * winheight(0) + 16) / 32)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 27
normal! 06|
wincmd w
argglobal
if bufexists(fnamemodify("scirpt/parser.h", ":p")) | buffer scirpt/parser.h | else | edit scirpt/parser.h | endif
if &buftype ==# 'terminal'
silent file scirpt/parser.h
endif
balt include/scirpt/parser.h
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 10 - ((9 * winheight(0) + 16) / 32)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 10
normal! 019|
wincmd w
argglobal
if bufexists(fnamemodify("scirpt/parser.c", ":p")) | buffer scirpt/parser.c | else | edit scirpt/parser.c | endif
if &buftype ==# 'terminal'
silent file scirpt/parser.c
endif
balt include/scirpt/parser.h
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 61 - ((45 * winheight(0) + 32) / 65)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 61
normal! 06|
wincmd w
exe 'vert 1resize ' . ((&columns * 60 + 127) / 255)
exe '2resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 2resize ' . ((&columns * 88 + 127) / 255)
exe '3resize ' . ((&lines * 32 + 34) / 68)
exe 'vert 3resize ' . ((&columns * 88 + 127) / 255)
exe 'vert 4resize ' . ((&columns * 105 + 127) / 255)
tabnext 1
set stal=1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
endif
unlet! s:wipebuf
set winheight=1 winwidth=20
let &shortmess = s:shortmess_save
let &winminheight = s:save_winminheight
let &winminwidth = s:save_winminwidth
let s:sx = expand("<sfile>:p:r")."x.vim"
if filereadable(s:sx)
exe "source " . fnameescape(s:sx)
endif
let &g:so = s:so_save | let &g:siso = s:siso_save
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :