Dev conf.

This commit is contained in:
Blallo 2019-03-06 15:08:51 +01:00
parent 07ab12b271
commit b80d08d151
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F
2 changed files with 99 additions and 0 deletions

83
.dev.vim Normal file
View file

@ -0,0 +1,83 @@
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 :

16
.tmuxp.yaml Normal file
View file

@ -0,0 +1,16 @@
session_name: ruspa
windows:
- layout: 5e61,213x63,0,0,12
options: {}
panes:
- focus: 'true'
shell_command: vim -c 'source .dev.vim'
start_directory: /home/leo/.go/src/git.lattuga.net/blallo/ruspa
window_name: ide
- focus: 'true'
layout: 5e62,213x63,0,0,13
options: {}
panes:
- pane
start_directory: /home/leo/.go/src/git.lattuga.net/blallo/ruspa
window_name: run