Mercurial > dotfiles.old
comparison vim/sessions/quadcopter.vim @ 67:fd46739dc0bb
Add session
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 25 Jun 2014 15:41:41 +0200 |
parents | |
children | ce5c457bde68 |
comparison
equal
deleted
inserted
replaced
66:29512c6542de | 67:fd46739dc0bb |
---|---|
1 " ~/.dotfiles/vim/sessions/quadcopter.vim: | |
2 " Vim session script. | |
3 " Created by session.vim 2.4.11 on 23 juni 2014 at 12:32:25. | |
4 " Open this file in Vim and run :source % to restore your session. | |
5 | |
6 set guioptions=egm | |
7 silent! set guifont=Inconsolata\ for\ Powerline:h12 | |
8 if exists('g:syntax_on') != 1 | syntax on | endif | |
9 if exists('g:did_load_filetypes') != 1 | filetype on | endif | |
10 if exists('g:did_load_ftplugin') != 1 | filetype plugin on | endif | |
11 if exists('g:did_indent_on') != 1 | filetype indent on | endif | |
12 if &background != 'dark' | |
13 set background=dark | |
14 endif | |
15 if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif | |
16 call setqflist([]) | |
17 let SessionLoad = 1 | |
18 if &cp | set nocp | endif | |
19 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 | |
20 let v:this_session=expand("<sfile>:p") | |
21 silent only | |
22 cd ~/Documents/projects/STM-Quadcopter | |
23 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' | |
24 let s:wipebuf = bufnr('%') | |
25 endif | |
26 set shortmess=aoO | |
27 badd +40 source/main.c | |
28 badd +81 source/bluetooth.c | |
29 badd +44 Makefile | |
30 badd +19 source/Makefile | |
31 badd +55 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_dma.h | |
32 badd +1 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_dma.c | |
33 badd +1 STM32F3-Discovery_FW_V1.1.0/Utilities/STM32F3_Discovery/stm32f3_discovery.c | |
34 badd +39 STM32F3-Discovery_FW_V1.1.0/Utilities/STM32F3_Discovery/stm32f3_discovery_l3gd20.h | |
35 badd +1 source/sensors.c | |
36 badd +13 source/sensors.h | |
37 badd +1 STM32F3-Discovery_FW_V1.1.0/Utilities/STM32F3_Discovery/stm32f3_discovery.h | |
38 badd +457 STM32F3-Discovery_FW_V1.1.0/Utilities/STM32F3_Discovery/stm32f3_discovery_l3gd20.c | |
39 badd +0 ./ | |
40 badd +0 source/bluetooth.h | |
41 " argglobal | |
42 silent! argdel * | |
43 argadd ./ | |
44 edit source/main.c | |
45 set splitbelow splitright | |
46 wincmd _ | wincmd | | |
47 vsplit | |
48 1wincmd h | |
49 wincmd w | |
50 wincmd _ | wincmd | | |
51 split | |
52 1wincmd k | |
53 wincmd w | |
54 set nosplitbelow | |
55 wincmd t | |
56 set winheight=1 winwidth=1 | |
57 exe 'vert 1resize ' . ((&columns * 93 + 93) / 187) | |
58 exe '2resize ' . ((&lines * 33 + 34) / 68) | |
59 exe 'vert 2resize ' . ((&columns * 93 + 93) / 187) | |
60 exe '3resize ' . ((&lines * 32 + 34) / 68) | |
61 exe 'vert 3resize ' . ((&columns * 93 + 93) / 187) | |
62 " argglobal | |
63 setlocal fdm=syntax | |
64 setlocal fde=0 | |
65 setlocal fmr={{{,}}} | |
66 setlocal fdi=# | |
67 setlocal fdl=2 | |
68 setlocal fml=1 | |
69 setlocal fdn=20 | |
70 setlocal fen | |
71 14 | |
72 silent! normal! zo | |
73 26 | |
74 silent! normal! zo | |
75 36 | |
76 silent! normal! zo | |
77 49 | |
78 silent! normal! zo | |
79 let s:l = 36 - ((35 * winheight(0) + 33) / 66) | |
80 if s:l < 1 | let s:l = 1 | endif | |
81 exe s:l | |
82 normal! zt | |
83 36 | |
84 normal! 0 | |
85 wincmd w | |
86 " argglobal | |
87 edit source/bluetooth.c | |
88 setlocal fdm=syntax | |
89 setlocal fde=0 | |
90 setlocal fmr={{{,}}} | |
91 setlocal fdi=# | |
92 setlocal fdl=3 | |
93 setlocal fml=1 | |
94 setlocal fdn=20 | |
95 setlocal fen | |
96 14 | |
97 normal! zc | |
98 55 | |
99 normal! zc | |
100 72 | |
101 normal! zc | |
102 80 | |
103 silent! normal! zo | |
104 94 | |
105 normal! zc | |
106 105 | |
107 silent! normal! zo | |
108 let s:l = 85 - ((72 * winheight(0) + 16) / 33) | |
109 if s:l < 1 | let s:l = 1 | endif | |
110 exe s:l | |
111 normal! zt | |
112 85 | |
113 normal! 05| | |
114 wincmd w | |
115 " argglobal | |
116 edit source/bluetooth.h | |
117 setlocal fdm=manual | |
118 setlocal fde=0 | |
119 setlocal fmr={{{,}}} | |
120 setlocal fdi=# | |
121 setlocal fdl=0 | |
122 setlocal fml=1 | |
123 setlocal fdn=20 | |
124 setlocal fen | |
125 silent! normal! zE | |
126 let s:l = 46 - ((7 * winheight(0) + 16) / 32) | |
127 if s:l < 1 | let s:l = 1 | endif | |
128 exe s:l | |
129 normal! zt | |
130 46 | |
131 normal! 0 | |
132 wincmd w | |
133 3wincmd w | |
134 exe 'vert 1resize ' . ((&columns * 93 + 93) / 187) | |
135 exe '2resize ' . ((&lines * 33 + 34) / 68) | |
136 exe 'vert 2resize ' . ((&columns * 93 + 93) / 187) | |
137 exe '3resize ' . ((&lines * 32 + 34) / 68) | |
138 exe 'vert 3resize ' . ((&columns * 93 + 93) / 187) | |
139 tabedit source/sensors.c | |
140 set splitbelow splitright | |
141 wincmd _ | wincmd | | |
142 vsplit | |
143 1wincmd h | |
144 wincmd w | |
145 wincmd _ | wincmd | | |
146 split | |
147 1wincmd k | |
148 wincmd w | |
149 set nosplitbelow | |
150 wincmd t | |
151 set winheight=1 winwidth=1 | |
152 exe 'vert 1resize ' . ((&columns * 93 + 93) / 187) | |
153 exe '2resize ' . ((&lines * 21 + 34) / 68) | |
154 exe 'vert 2resize ' . ((&columns * 93 + 93) / 187) | |
155 exe '3resize ' . ((&lines * 44 + 34) / 68) | |
156 exe 'vert 3resize ' . ((&columns * 93 + 93) / 187) | |
157 " argglobal | |
158 setlocal fdm=syntax | |
159 setlocal fde=0 | |
160 setlocal fmr={{{,}}} | |
161 setlocal fdi=# | |
162 setlocal fdl=0 | |
163 setlocal fml=1 | |
164 setlocal fdn=20 | |
165 setlocal fen | |
166 let s:l = 21 - ((20 * winheight(0) + 33) / 66) | |
167 if s:l < 1 | let s:l = 1 | endif | |
168 exe s:l | |
169 normal! zt | |
170 21 | |
171 normal! 01| | |
172 wincmd w | |
173 " argglobal | |
174 edit source/sensors.h | |
175 setlocal fdm=manual | |
176 setlocal fde=0 | |
177 setlocal fmr={{{,}}} | |
178 setlocal fdi=# | |
179 setlocal fdl=0 | |
180 setlocal fml=1 | |
181 setlocal fdn=20 | |
182 setlocal fen | |
183 silent! normal! zE | |
184 let s:l = 13 - ((4 * winheight(0) + 10) / 21) | |
185 if s:l < 1 | let s:l = 1 | endif | |
186 exe s:l | |
187 normal! zt | |
188 13 | |
189 normal! 027| | |
190 wincmd w | |
191 " argglobal | |
192 edit source/main.c | |
193 setlocal fdm=syntax | |
194 setlocal fde=0 | |
195 setlocal fmr={{{,}}} | |
196 setlocal fdi=# | |
197 setlocal fdl=1 | |
198 setlocal fml=1 | |
199 setlocal fdn=20 | |
200 setlocal fen | |
201 14 | |
202 silent! normal! zo | |
203 26 | |
204 silent! normal! zo | |
205 let s:l = 26 - ((19 * winheight(0) + 22) / 44) | |
206 if s:l < 1 | let s:l = 1 | endif | |
207 exe s:l | |
208 normal! zt | |
209 26 | |
210 normal! 012| | |
211 wincmd w | |
212 3wincmd w | |
213 exe 'vert 1resize ' . ((&columns * 93 + 93) / 187) | |
214 exe '2resize ' . ((&lines * 21 + 34) / 68) | |
215 exe 'vert 2resize ' . ((&columns * 93 + 93) / 187) | |
216 exe '3resize ' . ((&lines * 44 + 34) / 68) | |
217 exe 'vert 3resize ' . ((&columns * 93 + 93) / 187) | |
218 tabedit STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_dma.h | |
219 set splitbelow splitright | |
220 wincmd _ | wincmd | | |
221 vsplit | |
222 1wincmd h | |
223 wincmd w | |
224 set nosplitbelow | |
225 wincmd t | |
226 set winheight=1 winwidth=1 | |
227 exe 'vert 1resize ' . ((&columns * 93 + 93) / 187) | |
228 exe 'vert 2resize ' . ((&columns * 93 + 93) / 187) | |
229 " argglobal | |
230 setlocal fdm=manual | |
231 setlocal fde=0 | |
232 setlocal fmr={{{,}}} | |
233 setlocal fdi=# | |
234 setlocal fdl=0 | |
235 setlocal fml=1 | |
236 setlocal fdn=20 | |
237 setlocal fen | |
238 silent! normal! zE | |
239 let s:l = 55 - ((4 * winheight(0) + 33) / 66) | |
240 if s:l < 1 | let s:l = 1 | endif | |
241 exe s:l | |
242 normal! zt | |
243 55 | |
244 normal! 091| | |
245 wincmd w | |
246 " argglobal | |
247 edit STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_dma.c | |
248 setlocal fdm=syntax | |
249 setlocal fde=0 | |
250 setlocal fmr={{{,}}} | |
251 setlocal fdi=# | |
252 setlocal fdl=0 | |
253 setlocal fml=1 | |
254 setlocal fdn=20 | |
255 setlocal fen | |
256 350 | |
257 silent! normal! zo | |
258 417 | |
259 silent! normal! zo | |
260 let s:l = 481 - ((49 * winheight(0) + 33) / 66) | |
261 if s:l < 1 | let s:l = 1 | endif | |
262 exe s:l | |
263 normal! zt | |
264 481 | |
265 normal! 019| | |
266 wincmd w | |
267 3wincmd w | |
268 exe 'vert 1resize ' . ((&columns * 93 + 93) / 187) | |
269 exe 'vert 2resize ' . ((&columns * 93 + 93) / 187) | |
270 tabedit source/Makefile | |
271 set splitbelow splitright | |
272 set nosplitbelow | |
273 wincmd t | |
274 set winheight=1 winwidth=1 | |
275 " argglobal | |
276 setlocal fdm=manual | |
277 setlocal fde=0 | |
278 setlocal fmr={{{,}}} | |
279 setlocal fdi=# | |
280 setlocal fdl=0 | |
281 setlocal fml=1 | |
282 setlocal fdn=20 | |
283 setlocal fen | |
284 silent! normal! zE | |
285 let s:l = 54 - ((53 * winheight(0) + 33) / 66) | |
286 if s:l < 1 | let s:l = 1 | endif | |
287 exe s:l | |
288 normal! zt | |
289 54 | |
290 normal! 0 | |
291 3wincmd w | |
292 tabnext 1 | |
293 if exists('s:wipebuf') | |
294 " silent exe 'bwipe ' . s:wipebuf | |
295 endif | |
296 " unlet! s:wipebuf | |
297 set winheight=1 winwidth=20 shortmess=filnxtToO | |
298 let s:sx = expand("<sfile>:p:r")."x.vim" | |
299 if file_readable(s:sx) | |
300 exe "source " . fnameescape(s:sx) | |
301 endif | |
302 let &so = s:so_save | let &siso = s:siso_save | |
303 | |
304 " Support for special windows like quick-fix and plug-in windows. | |
305 " Everything down here is generated by vim-session (not supported | |
306 " by :mksession out of the box). | |
307 | |
308 tabnext 1 | |
309 3wincmd w | |
310 if exists('s:wipebuf') | |
311 if empty(bufname(s:wipebuf)) | |
312 if !getbufvar(s:wipebuf, '&modified') | |
313 let s:wipebuflines = getbufline(s:wipebuf, 1, '$') | |
314 if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, '')) | |
315 silent execute 'bwipeout' s:wipebuf | |
316 endif | |
317 endif | |
318 endif | |
319 endif | |
320 doautoall SessionLoadPost | |
321 unlet SessionLoad | |
322 " vim: ft=vim ro nowrap smc=128 |