From b80d08d1513107237b466291d13ad261ab2d2d2c Mon Sep 17 00:00:00 2001 From: Blallo Date: Wed, 6 Mar 2019 15:08:51 +0100 Subject: [PATCH] Dev conf. --- .dev.vim | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++ .tmuxp.yaml | 16 +++++++++++ 2 files changed, 99 insertions(+) create mode 100644 .dev.vim create mode 100644 .tmuxp.yaml diff --git a/.dev.vim b/.dev.vim new file mode 100644 index 0000000..4250f0d --- /dev/null +++ b/.dev.vim @@ -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(":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(":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 : diff --git a/.tmuxp.yaml b/.tmuxp.yaml new file mode 100644 index 0000000..acb668a --- /dev/null +++ b/.tmuxp.yaml @@ -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