You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
267 lines
6.3 KiB
267 lines
6.3 KiB
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 ~/Development/ft_container
|
|
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 +1 Makefile
|
|
badd +1 tester.cpp
|
|
badd +255 includes/vector.hpp
|
|
badd +1 main.cpp
|
|
badd +1 includes/ft_container.hpp
|
|
badd +1 includes/iterator.hpp
|
|
badd +0 includes/reverse_iterator.hpp
|
|
badd +0 includes/stack.hpp
|
|
argglobal
|
|
%argdel
|
|
$argadd main.cpp
|
|
tabnew +setlocal\ bufhidden=wipe
|
|
tabnew +setlocal\ bufhidden=wipe
|
|
tabrewind
|
|
edit Makefile
|
|
let s:save_splitbelow = &splitbelow
|
|
let s:save_splitright = &splitright
|
|
set splitbelow splitright
|
|
wincmd _ | wincmd |
|
|
vsplit
|
|
wincmd _ | wincmd |
|
|
vsplit
|
|
2wincmd h
|
|
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 * 63 + 95) / 190)
|
|
exe 'vert 2resize ' . ((&columns * 62 + 95) / 190)
|
|
exe 'vert 3resize ' . ((&columns * 63 + 95) / 190)
|
|
argglobal
|
|
balt includes/ft_container.hpp
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
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) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 1
|
|
normal! 0
|
|
wincmd w
|
|
argglobal
|
|
if bufexists(fnamemodify("includes/ft_container.hpp", ":p")) | buffer includes/ft_container.hpp | else | edit includes/ft_container.hpp | endif
|
|
if &buftype ==# 'terminal'
|
|
silent file includes/ft_container.hpp
|
|
endif
|
|
balt Makefile
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
setlocal fmr={{{,}}}
|
|
setlocal fdi=#
|
|
setlocal fdl=0
|
|
setlocal fml=1
|
|
setlocal fdn=20
|
|
setlocal fen
|
|
silent! normal! zE
|
|
let &fdl = &fdl
|
|
let s:l = 3 - ((1 * winheight(0) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 3
|
|
normal! 021|
|
|
wincmd w
|
|
argglobal
|
|
if bufexists(fnamemodify("tester.cpp", ":p")) | buffer tester.cpp | else | edit tester.cpp | endif
|
|
if &buftype ==# 'terminal'
|
|
silent file tester.cpp
|
|
endif
|
|
balt Makefile
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
setlocal fmr={{{,}}}
|
|
setlocal fdi=#
|
|
setlocal fdl=0
|
|
setlocal fml=1
|
|
setlocal fdn=20
|
|
setlocal fen
|
|
silent! normal! zE
|
|
let &fdl = &fdl
|
|
let s:l = 3 - ((1 * winheight(0) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 3
|
|
normal! 0
|
|
wincmd w
|
|
exe 'vert 1resize ' . ((&columns * 63 + 95) / 190)
|
|
exe 'vert 2resize ' . ((&columns * 62 + 95) / 190)
|
|
exe 'vert 3resize ' . ((&columns * 63 + 95) / 190)
|
|
tabnext
|
|
edit includes/iterator.hpp
|
|
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 * 94 + 95) / 190)
|
|
exe 'vert 2resize ' . ((&columns * 95 + 95) / 190)
|
|
argglobal
|
|
balt includes/reverse_iterator.hpp
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
setlocal fmr={{{,}}}
|
|
setlocal fdi=#
|
|
setlocal fdl=0
|
|
setlocal fml=1
|
|
setlocal fdn=20
|
|
setlocal fen
|
|
silent! normal! zE
|
|
let &fdl = &fdl
|
|
let s:l = 80 - ((21 * winheight(0) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 80
|
|
normal! 057|
|
|
wincmd w
|
|
argglobal
|
|
if bufexists(fnamemodify("includes/reverse_iterator.hpp", ":p")) | buffer includes/reverse_iterator.hpp | else | edit includes/reverse_iterator.hpp | endif
|
|
if &buftype ==# 'terminal'
|
|
silent file includes/reverse_iterator.hpp
|
|
endif
|
|
balt includes/iterator.hpp
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
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) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 1
|
|
normal! 0
|
|
wincmd w
|
|
exe 'vert 1resize ' . ((&columns * 94 + 95) / 190)
|
|
exe 'vert 2resize ' . ((&columns * 95 + 95) / 190)
|
|
tabnext
|
|
edit includes/vector.hpp
|
|
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 * 94 + 95) / 190)
|
|
exe 'vert 2resize ' . ((&columns * 95 + 95) / 190)
|
|
argglobal
|
|
balt includes/stack.hpp
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
setlocal fmr={{{,}}}
|
|
setlocal fdi=#
|
|
setlocal fdl=0
|
|
setlocal fml=1
|
|
setlocal fdn=20
|
|
setlocal fen
|
|
silent! normal! zE
|
|
let &fdl = &fdl
|
|
let s:l = 255 - ((22 * winheight(0) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 255
|
|
normal! 013|
|
|
wincmd w
|
|
argglobal
|
|
if bufexists(fnamemodify("includes/stack.hpp", ":p")) | buffer includes/stack.hpp | else | edit includes/stack.hpp | endif
|
|
if &buftype ==# 'terminal'
|
|
silent file includes/stack.hpp
|
|
endif
|
|
balt includes/vector.hpp
|
|
setlocal fdm=manual
|
|
setlocal fde=
|
|
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) + 23) / 46)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
keepjumps exe s:l
|
|
normal! zt
|
|
keepjumps 1
|
|
normal! 0
|
|
wincmd w
|
|
2wincmd w
|
|
exe 'vert 1resize ' . ((&columns * 94 + 95) / 190)
|
|
exe 'vert 2resize ' . ((&columns * 95 + 95) / 190)
|
|
tabnext 3
|
|
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
|
|
set hlsearch
|
|
doautoall SessionLoadPost
|
|
unlet SessionLoad
|
|
" vim: set ft=vim :
|
|
|