comparison vim/sessions/foundation.vim @ 82:5fd16ed8bb6d

Add vimsessions
author zegervdv <zegervdv@me.com>
date Sun, 27 Jul 2014 23:15:54 +0200
parents
children
comparison
equal deleted inserted replaced
81:044395254e27 82:5fd16ed8bb6d
1 " ~/.dotfiles/vim/sessions/foundation.vim:
2 " Vim session script.
3 " Created by session.vim 2.6.1 on 23 juli 2014 at 23:11:41.
4 " Open this file in Vim and run :source % to restore your session.
5
6 if exists('g:syntax_on') != 1 | syntax on | endif
7 if exists('g:did_load_filetypes') != 1 | filetype on | endif
8 if exists('g:did_load_ftplugin') != 1 | filetype plugin on | endif
9 if exists('g:did_indent_on') != 1 | filetype indent on | endif
10 if &background != 'light'
11 set background=light
12 endif
13 if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif
14 call setqflist([])
15 let SessionLoad = 1
16 if &cp | set nocp | endif
17 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
18 let v:this_session=expand("<sfile>:p")
19 silent only
20 cd ~/Documents/Projects/dotfiles_manager
21 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
22 let s:wipebuf = bufnr('%')
23 endif
24 set shortmess=aoO
25 badd +1 lib/foundations.rb
26 badd +25 lib/foundations/link.rb
27 badd +9 spec/foundations/link_spec.rb
28 badd +0 spec/foundations_spec.rb
29 badd +18 lib/foundations/foundations.rb
30 badd +0 spec/foundations/foundations_spec.rb
31 " argglobal
32 silent! argdel *
33 argadd lib/foundations.rb
34 edit lib/foundations.rb
35 set splitbelow splitright
36 wincmd _ | wincmd |
37 vsplit
38 1wincmd h
39 wincmd _ | wincmd |
40 split
41 1wincmd k
42 wincmd w
43 wincmd w
44 set nosplitbelow
45 wincmd t
46 set winheight=1 winwidth=1
47 exe '1resize ' . ((&lines * 23 + 24) / 48)
48 exe 'vert 1resize ' . ((&columns * 105 + 105) / 211)
49 exe '2resize ' . ((&lines * 22 + 24) / 48)
50 exe 'vert 2resize ' . ((&columns * 105 + 105) / 211)
51 exe 'vert 3resize ' . ((&columns * 105 + 105) / 211)
52 " argglobal
53 setlocal fdm=manual
54 setlocal fde=0
55 setlocal fmr={{{,}}}
56 setlocal fdi=#
57 setlocal fdl=0
58 setlocal fml=1
59 setlocal fdn=20
60 setlocal fen
61 silent! normal! zE
62 let s:l = 2 - ((1 * winheight(0) + 11) / 23)
63 if s:l < 1 | let s:l = 1 | endif
64 exe s:l
65 normal! zt
66 2
67 normal! 07|
68 lcd ~/Documents/Projects/dotfiles_manager
69 wincmd w
70 " argglobal
71 edit ~/Documents/Projects/dotfiles_manager/spec/foundations/foundations_spec.rb
72 setlocal fdm=manual
73 setlocal fde=0
74 setlocal fmr={{{,}}}
75 setlocal fdi=#
76 setlocal fdl=0
77 setlocal fml=1
78 setlocal fdn=20
79 setlocal fen
80 silent! normal! zE
81 let s:l = 4 - ((3 * winheight(0) + 11) / 22)
82 if s:l < 1 | let s:l = 1 | endif
83 exe s:l
84 normal! zt
85 4
86 normal! 012|
87 lcd ~/Documents/Projects/dotfiles_manager
88 wincmd w
89 " argglobal
90 edit ~/Documents/Projects/dotfiles_manager/lib/foundations/foundations.rb
91 setlocal fdm=manual
92 setlocal fde=0
93 setlocal fmr={{{,}}}
94 setlocal fdi=#
95 setlocal fdl=0
96 setlocal fml=1
97 setlocal fdn=20
98 setlocal fen
99 silent! normal! zE
100 let s:l = 3 - ((2 * winheight(0) + 23) / 46)
101 if s:l < 1 | let s:l = 1 | endif
102 exe s:l
103 normal! zt
104 3
105 normal! 047|
106 lcd ~/Documents/Projects/dotfiles_manager
107 wincmd w
108 exe '1resize ' . ((&lines * 23 + 24) / 48)
109 exe 'vert 1resize ' . ((&columns * 105 + 105) / 211)
110 exe '2resize ' . ((&lines * 22 + 24) / 48)
111 exe 'vert 2resize ' . ((&columns * 105 + 105) / 211)
112 exe 'vert 3resize ' . ((&columns * 105 + 105) / 211)
113 tabnext 1
114 if exists('s:wipebuf')
115 " silent exe 'bwipe ' . s:wipebuf
116 endif
117 " unlet! s:wipebuf
118 set winheight=1 winwidth=20 shortmess=filnxtToOc
119 let s:sx = expand("<sfile>:p:r")."x.vim"
120 if file_readable(s:sx)
121 exe "source " . fnameescape(s:sx)
122 endif
123 let &so = s:so_save | let &siso = s:siso_save
124
125 " Support for special windows like quick-fix and plug-in windows.
126 " Everything down here is generated by vim-session (not supported
127 " by :mksession out of the box).
128
129 1wincmd w
130 tabnext 1
131 if exists('s:wipebuf')
132 if empty(bufname(s:wipebuf))
133 if !getbufvar(s:wipebuf, '&modified')
134 let s:wipebuflines = getbufline(s:wipebuf, 1, '$')
135 if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, ''))
136 silent execute 'bwipeout' s:wipebuf
137 endif
138 endif
139 endif
140 endif
141 doautoall SessionLoadPost
142 unlet SessionLoad
143 " vim: ft=vim ro nowrap smc=128