83 linhas
1,9 KiB
VimL
83 linhas
1,9 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
|
|
silent tabonly
|
|
cd ~/.go/src/git.lattuga.net/blallo/ruspa
|
|
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
let s:wipebuf = bufnr('%')
|
|
endif
|
|
set shortmess=aoO
|
|
argglobal
|
|
%argdel
|
|
$argadd sizer/main.go
|
|
$argadd main.go
|
|
edit sizer/main.go
|
|
set splitbelow splitright
|
|
wincmd _ | wincmd |
|
|
vsplit
|
|
1wincmd h
|
|
wincmd w
|
|
wincmd t
|
|
set winminheight=0
|
|
set winheight=1
|
|
set winminwidth=0
|
|
set winwidth=1
|
|
exe 'vert 1resize ' . ((&columns * 106 + 106) / 213)
|
|
exe 'vert 2resize ' . ((&columns * 106 + 106) / 213)
|
|
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 = 197 - ((59 * winheight(0) + 30) / 60)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
197
|
|
normal! 0
|
|
wincmd w
|
|
argglobal
|
|
if bufexists("sizer/logger.go") | buffer sizer/logger.go | else | edit sizer/logger.go | 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 s:l = 52 - ((50 * winheight(0) + 30) / 60)
|
|
if s:l < 1 | let s:l = 1 | endif
|
|
exe s:l
|
|
normal! zt
|
|
52
|
|
normal! 019|
|
|
wincmd w
|
|
exe 'vert 1resize ' . ((&columns * 106 + 106) / 213)
|
|
exe 'vert 2resize ' . ((&columns * 106 + 106) / 213)
|
|
tabnext 1
|
|
badd +188 sizer/main.go
|
|
badd +16 main.go
|
|
badd +0 sizer/logger.go
|
|
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0
|
|
silent exe 'bwipe ' . s:wipebuf
|
|
endif
|
|
unlet! s:wipebuf
|
|
set winheight=1 winwidth=20 shortmess=filmnrxoOtT
|
|
set winminheight=0 winminwidth=1
|
|
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
|
|
doautoall SessionLoadPost
|
|
unlet SessionLoad
|
|
" vim: set ft=vim :
|