161 lines
3.5 KiB
VimL
161 lines
3.5 KiB
VimL
let SessionLoad = 1
|
|
if &cp | set nocp | endif
|
|
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
|
|
let v:this_session=expand("<sfile>:p")
|
|
silent only
|
|
cd ~/42/minishell
|
|
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
let s:wipebuf = bufnr('%')
|
|
endif
|
|
set shortmess=aoO
|
|
badd +0 includes/minishell.h
|
|
badd +1 src/user-interaction/ft_word_left.c
|
|
badd +11 src/user-interaction/ft_cursor_left.c
|
|
badd +8 src/user-interaction/ft_interactive_sh.c
|
|
badd +0 src/user-interaction/ft_word_right.c
|
|
badd +0 src/user-interaction/ft_cursor_right.c
|
|
badd +7 src/user-interaction/ft_clear_line.c
|
|
badd +1 src/user-interaction/ft_line_start.c
|
|
badd +5 src/user-interaction/ft_line_end.c
|
|
argglobal
|
|
silent! argdel *
|
|
set stal=2
|
|
edit includes/minishell.h
|
|
set splitbelow splitright
|
|
set nosplitbelow
|
|
set nosplitright
|
|
wincmd t
|
|
set winheight=1 winwidth=1
|
|
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 s:l = 47 - ((8 * winheight(0) + 19) / 38)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
47
|
|
normal! 023|
|
|
tabedit src/user-interaction/ft_interactive_sh.c
|
|
set splitbelow splitright
|
|
wincmd _ | wincmd |
|
|
vsplit
|
|
1wincmd h
|
|
wincmd w
|
|
set nosplitbelow
|
|
set nosplitright
|
|
wincmd t
|
|
set winheight=1 winwidth=1
|
|
exe 'vert 1resize ' . ((&columns * 79 + 79) / 158)
|
|
exe 'vert 2resize ' . ((&columns * 78 + 79) / 158)
|
|
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 s:l = 8 - ((7 * winheight(0) + 19) / 38)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
8
|
|
normal! 015|
|
|
wincmd w
|
|
argglobal
|
|
edit src/user-interaction/ft_clear_line.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 s:l = 1 - ((0 * winheight(0) + 19) / 38)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
1
|
|
normal! 0
|
|
wincmd w
|
|
2wincmd w
|
|
exe 'vert 1resize ' . ((&columns * 79 + 79) / 158)
|
|
exe 'vert 2resize ' . ((&columns * 78 + 79) / 158)
|
|
tabedit src/user-interaction/ft_word_right.c
|
|
set splitbelow splitright
|
|
wincmd _ | wincmd |
|
|
vsplit
|
|
1wincmd h
|
|
wincmd w
|
|
set nosplitbelow
|
|
set nosplitright
|
|
wincmd t
|
|
set winheight=1 winwidth=1
|
|
exe 'vert 1resize ' . ((&columns * 79 + 79) / 158)
|
|
exe 'vert 2resize ' . ((&columns * 78 + 79) / 158)
|
|
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 s:l = 5 - ((4 * winheight(0) + 19) / 38)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
5
|
|
normal! 013|
|
|
wincmd w
|
|
argglobal
|
|
edit src/user-interaction/ft_cursor_right.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 s:l = 18 - ((17 * winheight(0) + 19) / 38)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
18
|
|
normal! 013|
|
|
wincmd w
|
|
exe 'vert 1resize ' . ((&columns * 79 + 79) / 158)
|
|
exe 'vert 2resize ' . ((&columns * 78 + 79) / 158)
|
|
tabnext 2
|
|
set stal=1
|
|
if exists('s:wipebuf')
|
|
silent exe 'bwipe ' . s:wipebuf
|
|
endif
|
|
unlet! s:wipebuf
|
|
set winheight=1 winwidth=20 shortmess=filnxtToO
|
|
let s:sx = expand("<sfile>:p:r")."x.vim"
|
|
if file_readable(s:sx)
|
|
exe "source " . fnameescape(s:sx)
|
|
endif
|
|
let &so = s:so_save | let &siso = s:siso_save
|
|
let g:this_session = v:this_session
|
|
let g:this_obsession = v:this_session
|
|
let g:this_obsession_status = 2
|
|
doautoall SessionLoadPost
|
|
unlet SessionLoad
|
|
" vim: set ft=vim :
|