166
|
1 " ~/.dotfiles/vim/sessions/piserv.vim:
|
|
2 " Vim session script.
|
|
3 " Created by session.vim 2.7 on 30 oktober 2014 at 22:22:31.
|
|
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 != 'dark'
|
|
11 set background=dark
|
|
12 endif
|
|
13 if !exists('g:colors_name') || g:colors_name != 'Tomorrow-Night' | colorscheme Tomorrow-Night | 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/pi-server
|
|
21 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
22 let s:wipebuf = bufnr('%')
|
|
23 endif
|
|
24 set shortmess=aoO
|
|
25 badd +10 spec/lib/indexer_spec.rb
|
|
26 badd +7 lib/indexer.rb
|
|
27 badd +56 spec/lib/photo_spec.rb
|
|
28 badd +9 lib/database.rb
|
|
29 badd +22 Gemfile
|
|
30 badd +73 lib/photo.rb
|
|
31 badd +7 config/database.yml
|
|
32 badd +5 Rakefile
|
|
33 argglobal
|
|
34 silent! argdel *
|
|
35 argadd spec/lib/indexer_spec.rb
|
|
36 edit lib/photo.rb
|
|
37 set splitbelow splitright
|
|
38 set nosplitbelow
|
|
39 wincmd t
|
|
40 set winheight=1 winwidth=1
|
|
41 argglobal
|
|
42 setlocal fdm=manual
|
|
43 setlocal fde=0
|
|
44 setlocal fmr={{{,}}}
|
|
45 setlocal fdi=#
|
|
46 setlocal fdl=0
|
|
47 setlocal fml=1
|
|
48 setlocal fdn=20
|
|
49 setlocal fen
|
|
50 silent! normal! zE
|
|
51 let s:l = 73 - ((41 * winheight(0) + 31) / 63)
|
|
52 if s:l < 1 | let s:l = 1 | endif
|
|
53 exe s:l
|
|
54 normal! zt
|
|
55 73
|
|
56 normal! 0
|
|
57 lcd ~/Documents/Projects/pi-server
|
|
58 tabnext 1
|
|
59 if exists('s:wipebuf')
|
|
60 " silent exe 'bwipe ' . s:wipebuf
|
|
61 endif
|
|
62 " unlet! s:wipebuf
|
|
63 set winheight=1 winwidth=20 shortmess=filnxtToOc
|
|
64 let s:sx = expand("<sfile>:p:r")."x.vim"
|
|
65 if file_readable(s:sx)
|
|
66 exe "source " . fnameescape(s:sx)
|
|
67 endif
|
|
68 let &so = s:so_save | let &siso = s:siso_save
|
|
69
|
|
70 " Support for special windows like quick-fix and plug-in windows.
|
|
71 " Everything down here is generated by vim-session (not supported
|
|
72 " by :mksession out of the box).
|
|
73
|
|
74 1wincmd w
|
|
75 tabnext 1
|
|
76 if exists('s:wipebuf')
|
|
77 if empty(bufname(s:wipebuf))
|
|
78 if !getbufvar(s:wipebuf, '&modified')
|
|
79 let s:wipebuflines = getbufline(s:wipebuf, 1, '$')
|
|
80 if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, ''))
|
|
81 silent execute 'bwipeout' s:wipebuf
|
|
82 endif
|
|
83 endif
|
|
84 endif
|
|
85 endif
|
|
86 doautoall SessionLoadPost
|
|
87 unlet SessionLoad
|
|
88 " vim: ft=vim ro nowrap smc=128
|