67
|
1 " ~/.dotfiles/vim/sessions/quadcopter.vim:
|
|
2 " Vim session script.
|
81
|
3 " Created by session.vim 2.6.1 on 27 juli 2014 at 20:08:24.
|
67
|
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
|
82
|
10 if &background != 'light'
|
|
11 set background=light
|
67
|
12 endif
|
|
13 if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif
|
81
|
14 call setqflist([{'lnum': 1217, 'col': 6, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_tim.h', 'text': 'void TIM_SetCompare1(TIM_TypeDef* TIMx, uint32_t Compare1);
'}, {'lnum': 1275, 'col': 6, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_tim.c', 'text': 'void TIM_SetCompare1(TIM_TypeDef* TIMx, uint32_t Compare1)
'}])
|
67
|
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
|
82
|
20 cd ~/Documents/Projects/STM-Quadrocopter
|
67
|
21 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
22 let s:wipebuf = bufnr('%')
|
|
23 endif
|
|
24 set shortmess=aoO
|
81
|
25 badd +39 source/motors.c
|
|
26 badd +0 source/motors.h
|
|
27 badd +293 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_gpio.h
|
|
28 badd +67 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_tim.h
|
|
29 badd +43 source/Makefile
|
|
30 badd +1276 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/src/stm32f30x_tim.c
|
|
31 badd +0 source/main.c
|
69
|
32 badd +1 source/bluetooth.h
|
81
|
33 badd +1 source/bluetooth.c
|
67
|
34 " argglobal
|
|
35 silent! argdel *
|
81
|
36 argadd .
|
|
37 edit source/motors.c
|
67
|
38 set splitbelow splitright
|
|
39 wincmd _ | wincmd |
|
|
40 vsplit
|
|
41 1wincmd h
|
|
42 wincmd w
|
|
43 set nosplitbelow
|
|
44 wincmd t
|
|
45 set winheight=1 winwidth=1
|
81
|
46 exe 'vert 1resize ' . ((&columns * 73 + 73) / 147)
|
|
47 exe 'vert 2resize ' . ((&columns * 73 + 73) / 147)
|
67
|
48 " argglobal
|
|
49 setlocal fdm=syntax
|
|
50 setlocal fde=0
|
|
51 setlocal fmr={{{,}}}
|
|
52 setlocal fdi=#
|
81
|
53 setlocal fdl=0
|
67
|
54 setlocal fml=1
|
|
55 setlocal fdn=20
|
|
56 setlocal fen
|
81
|
57 7
|
67
|
58 silent! normal! zo
|
81
|
59 let s:l = 39 - ((20 * winheight(0) + 20) / 41)
|
67
|
60 if s:l < 1 | let s:l = 1 | endif
|
|
61 exe s:l
|
|
62 normal! zt
|
81
|
63 39
|
|
64 normal! 03|
|
|
65 lcd ~/Documents/projects/STM-Quadcopter
|
67
|
66 wincmd w
|
|
67 " argglobal
|
81
|
68 edit ~/Documents/projects/STM-Quadcopter/source/motors.h
|
67
|
69 setlocal fdm=manual
|
|
70 setlocal fde=0
|
|
71 setlocal fmr={{{,}}}
|
|
72 setlocal fdi=#
|
|
73 setlocal fdl=0
|
|
74 setlocal fml=1
|
|
75 setlocal fdn=20
|
|
76 setlocal fen
|
|
77 silent! normal! zE
|
81
|
78 let s:l = 41 - ((29 * winheight(0) + 20) / 41)
|
|
79 if s:l < 1 | let s:l = 1 | endif
|
|
80 exe s:l
|
|
81 normal! zt
|
|
82 41
|
|
83 normal! 0
|
|
84 lcd ~/Documents/projects/STM-Quadcopter
|
|
85 wincmd w
|
|
86 exe 'vert 1resize ' . ((&columns * 73 + 73) / 147)
|
|
87 exe 'vert 2resize ' . ((&columns * 73 + 73) / 147)
|
|
88 tabedit ~/Documents/projects/STM-Quadcopter/source/bluetooth.h
|
|
89 set splitbelow splitright
|
|
90 wincmd _ | wincmd |
|
|
91 vsplit
|
|
92 1wincmd h
|
|
93 wincmd w
|
|
94 set nosplitbelow
|
|
95 wincmd t
|
|
96 set winheight=1 winwidth=1
|
|
97 exe 'vert 1resize ' . ((&columns * 73 + 73) / 147)
|
|
98 exe 'vert 2resize ' . ((&columns * 73 + 73) / 147)
|
|
99 " argglobal
|
|
100 setlocal fdm=manual
|
|
101 setlocal fde=0
|
|
102 setlocal fmr={{{,}}}
|
|
103 setlocal fdi=#
|
|
104 setlocal fdl=0
|
|
105 setlocal fml=1
|
|
106 setlocal fdn=20
|
|
107 setlocal fen
|
|
108 silent! normal! zE
|
|
109 let s:l = 1 - ((0 * winheight(0) + 20) / 41)
|
67
|
110 if s:l < 1 | let s:l = 1 | endif
|
|
111 exe s:l
|
|
112 normal! zt
|
77
|
113 1
|
67
|
114 normal! 0
|
81
|
115 lcd ~/Documents/projects/STM-Quadcopter
|
67
|
116 wincmd w
|
81
|
117 " argglobal
|
|
118 edit ~/Documents/projects/STM-Quadcopter/source/bluetooth.c
|
|
119 setlocal fdm=syntax
|
|
120 setlocal fde=0
|
|
121 setlocal fmr={{{,}}}
|
|
122 setlocal fdi=#
|
|
123 setlocal fdl=0
|
|
124 setlocal fml=1
|
|
125 setlocal fdn=20
|
|
126 setlocal fen
|
|
127 76
|
|
128 silent! normal! zo
|
|
129 let s:l = 79 - ((78 * winheight(0) + 20) / 41)
|
|
130 if s:l < 1 | let s:l = 1 | endif
|
|
131 exe s:l
|
|
132 normal! zt
|
|
133 79
|
|
134 normal! 0
|
|
135 lcd ~/Documents/projects/STM-Quadcopter
|
|
136 wincmd w
|
|
137 2wincmd w
|
|
138 exe 'vert 1resize ' . ((&columns * 73 + 73) / 147)
|
|
139 exe 'vert 2resize ' . ((&columns * 73 + 73) / 147)
|
|
140 tabedit ~/Documents/projects/STM-Quadcopter/source/main.c
|
67
|
141 set splitbelow splitright
|
|
142 set nosplitbelow
|
|
143 wincmd t
|
|
144 set winheight=1 winwidth=1
|
|
145 " argglobal
|
|
146 setlocal fdm=syntax
|
|
147 setlocal fde=0
|
|
148 setlocal fmr={{{,}}}
|
|
149 setlocal fdi=#
|
|
150 setlocal fdl=0
|
|
151 setlocal fml=1
|
|
152 setlocal fdn=20
|
|
153 setlocal fen
|
81
|
154 20
|
69
|
155 silent! normal! zo
|
81
|
156 let s:l = 9 - ((8 * winheight(0) + 20) / 41)
|
67
|
157 if s:l < 1 | let s:l = 1 | endif
|
|
158 exe s:l
|
|
159 normal! zt
|
81
|
160 9
|
|
161 normal! 018|
|
|
162 lcd ~/Documents/projects/STM-Quadcopter
|
|
163 2wincmd w
|
|
164 tabedit ~/Documents/projects/STM-Quadcopter/source/Makefile
|
69
|
165 set splitbelow splitright
|
|
166 set nosplitbelow
|
|
167 wincmd t
|
|
168 set winheight=1 winwidth=1
|
|
169 " argglobal
|
|
170 setlocal fdm=manual
|
|
171 setlocal fde=0
|
|
172 setlocal fmr={{{,}}}
|
|
173 setlocal fdi=#
|
|
174 setlocal fdl=0
|
|
175 setlocal fml=1
|
|
176 setlocal fdn=20
|
|
177 setlocal fen
|
|
178 silent! normal! zE
|
81
|
179 let s:l = 12 - ((5 * winheight(0) + 20) / 41)
|
67
|
180 if s:l < 1 | let s:l = 1 | endif
|
|
181 exe s:l
|
|
182 normal! zt
|
81
|
183 12
|
|
184 normal! 014|
|
|
185 lcd ~/Documents/projects/STM-Quadcopter
|
|
186 2wincmd w
|
|
187 tabnext 2
|
67
|
188 if exists('s:wipebuf')
|
|
189 " silent exe 'bwipe ' . s:wipebuf
|
|
190 endif
|
|
191 " unlet! s:wipebuf
|
82
|
192 set winheight=1 winwidth=20 shortmess=filnxtToOc
|
67
|
193 let s:sx = expand("<sfile>:p:r")."x.vim"
|
|
194 if file_readable(s:sx)
|
|
195 exe "source " . fnameescape(s:sx)
|
|
196 endif
|
|
197 let &so = s:so_save | let &siso = s:siso_save
|
|
198
|
|
199 " Support for special windows like quick-fix and plug-in windows.
|
|
200 " Everything down here is generated by vim-session (not supported
|
|
201 " by :mksession out of the box).
|
|
202
|
81
|
203 2wincmd w
|
|
204 tabnext 2
|
67
|
205 if exists('s:wipebuf')
|
|
206 if empty(bufname(s:wipebuf))
|
|
207 if !getbufvar(s:wipebuf, '&modified')
|
|
208 let s:wipebuflines = getbufline(s:wipebuf, 1, '$')
|
|
209 if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, ''))
|
|
210 silent execute 'bwipeout' s:wipebuf
|
|
211 endif
|
|
212 endif
|
|
213 endif
|
|
214 endif
|
|
215 doautoall SessionLoadPost
|
|
216 unlet SessionLoad
|
|
217 " vim: ft=vim ro nowrap smc=128
|