Skip to content

Commit

Permalink
More stuff.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.hexten.net/andy/home@4879 7993f63a-630d-0410-9861-a193ae2ae3d1
  • Loading branch information
AndyA committed Jun 26, 2009
1 parent ad7ea09 commit 07ac808
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 2 deletions.
1 change: 1 addition & 0 deletions .moduletool/templates/default/config
@@ -0,0 +1 @@
postinstall = postinstall.sh
1 change: 1 addition & 0 deletions .moduletool/templates/default/proto/.gitignore
Expand Up @@ -12,3 +12,4 @@ cover_db
.*.swp
.prove
Session.vim
postinstall.sh
85 changes: 85 additions & 0 deletions .moduletool/templates/default/proto/Session.vim
@@ -0,0 +1,85 @@
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 [% meta.home %]
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
set shortmess=aoO
badd +1 lib/[% module.file %]
badd +0 t/basic.t
badd +0 Build.PL
args lib/[% module.file %] t/basic.t

edit lib/[% module.file %]
set splitbelow splitright
wincmd _ | wincmd |
vsplit
1wincmd h
wincmd w
wincmd _ | wincmd |
split
1wincmd k
wincmd w
set nosplitbelow
set nosplitright
wincmd t
set winheight=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 85 + 85) / 171)
exe '2resize ' . ((&lines * 20 + 21) / 43)
exe 'vert 2resize ' . ((&columns * 85 + 85) / 171)
exe '3resize ' . ((&lines * 20 + 21) / 43)
exe 'vert 3resize ' . ((&columns * 85 + 85) / 171)
argglobal
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 20) / 41)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
wincmd w
argglobal
2argu

edit Build.PL
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 10) / 20)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
1
normal! 0
wincmd w
argglobal
2argu
silent! normal! zE
let s:l = 1 - ((0 * winheight(0) + 10) / 20)
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 * 85 + 85) / 171)
exe '2resize ' . ((&lines * 20 + 21) / 43)
exe 'vert 2resize ' . ((&columns * 85 + 85) / 171)
exe '3resize ' . ((&lines * 20 + 21) / 43)
exe 'vert 3resize ' . ((&columns * 85 + 85) / 171)
tabnext 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
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :
9 changes: 9 additions & 0 deletions .moduletool/templates/default/proto/postinstall.sh
@@ -0,0 +1,9 @@
#!/bin/sh

git init
git add .
git commit -m 'Initial check-in.'
rm postinstall.sh

# vim:ts=2:sw=2:sts=2:et:ft=sh

4 changes: 2 additions & 2 deletions .vimrc
Expand Up @@ -80,7 +80,7 @@ noremap <C-Left> <esc><C-w>h<C-w>_
noremap <C-Right> <esc><C-w>l<C-w>_
" Edit, load ~/.vimrc
map ,v :spl ~/.vimrc<CR><C-W>_
map <silent> ,V :source ~/.vimrc<CR>:filetype detect<CR>
map <leader>V :spl ~/.vimrc<CR><C-W>_
map <silent> <leader>W :source ~/.vimrc<CR>:filetype detect<CR>
\ :exe ":echo 'vimrc reloaded'"<CR>

0 comments on commit 07ac808

Please sign in to comment.