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