67
|
1 " ~/.dotfiles/vim/sessions/quadcopter.vim:
|
|
2 " Vim session script.
|
83
|
3 " Created by session.vim 2.6.1 on 27 juli 2014 at 23:46:20.
|
67
|
4 " Open this file in Vim and run :source % to restore your session.
|
|
5
|
83
|
6 set guioptions=egm
|
|
7 silent! set guifont=Inconsolata\ for\ Powerline:h12
|
67
|
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
|
83
|
12 if &background != 'dark'
|
|
13 set background=dark
|
67
|
14 endif
|
|
15 if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif
|
83
|
16 call setqflist([])
|
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
|
82
|
22 cd ~/Documents/Projects/STM-Quadrocopter
|
67
|
23 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
|
24 let s:wipebuf = bufnr('%')
|
|
25 endif
|
|
26 set shortmess=aoO
|
83
|
27 badd +0 source/main.c
|
|
28 badd +13 source/motors.c
|
81
|
29 badd +0 source/motors.h
|
83
|
30 badd +301 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_gpio.h
|
|
31 badd +454 STM32F3-Discovery_FW_V1.1.0/Libraries/STM32F30x_StdPeriph_Driver/inc/stm32f30x_rcc.h
|
67
|
32 " argglobal
|
|
33 silent! argdel *
|
81
|
34 argadd .
|
83
|
35 edit source/main.c
|
67
|
36 set splitbelow splitright
|
|
37 set nosplitbelow
|
|
38 wincmd t
|
|
39 set winheight=1 winwidth=1
|
|
40 " argglobal
|
|
41 setlocal fdm=syntax
|
|
42 setlocal fde=0
|
|
43 setlocal fmr={{{,}}}
|
|
44 setlocal fdi=#
|
|
45 setlocal fdl=0
|
|
46 setlocal fml=1
|
|
47 setlocal fdn=20
|
|
48 setlocal fen
|
83
|
49 let s:l = 1 - ((0 * winheight(0) + 24) / 48)
|
67
|
50 if s:l < 1 | let s:l = 1 | endif
|
|
51 exe s:l
|
|
52 normal! zt
|
83
|
53 1
|
|
54 normal! 01|
|
|
55 tabedit source/motors.c
|
69
|
56 set splitbelow splitright
|
83
|
57 wincmd _ | wincmd |
|
|
58 vsplit
|
|
59 1wincmd h
|
|
60 wincmd w
|
69
|
61 set nosplitbelow
|
|
62 wincmd t
|
|
63 set winheight=1 winwidth=1
|
83
|
64 exe 'vert 1resize ' . ((&columns * 91 + 92) / 184)
|
|
65 exe 'vert 2resize ' . ((&columns * 92 + 92) / 184)
|
69
|
66 " argglobal
|
83
|
67 setlocal fdm=syntax
|
|
68 setlocal fde=0
|
|
69 setlocal fmr={{{,}}}
|
|
70 setlocal fdi=#
|
|
71 setlocal fdl=0
|
|
72 setlocal fml=1
|
|
73 setlocal fdn=20
|
|
74 setlocal fen
|
|
75 7
|
|
76 silent! normal! zo
|
|
77 let s:l = 22 - ((4 * winheight(0) + 24) / 48)
|
|
78 if s:l < 1 | let s:l = 1 | endif
|
|
79 exe s:l
|
|
80 normal! zt
|
|
81 22
|
|
82 normal! 046|
|
|
83 lcd ~/Documents/Projects/STM-Quadrocopter
|
|
84 wincmd w
|
|
85 " argglobal
|
|
86 edit ~/Documents/Projects/STM-Quadrocopter/source/motors.h
|
69
|
87 setlocal fdm=manual
|
|
88 setlocal fde=0
|
|
89 setlocal fmr={{{,}}}
|
|
90 setlocal fdi=#
|
|
91 setlocal fdl=0
|
|
92 setlocal fml=1
|
|
93 setlocal fdn=20
|
|
94 setlocal fen
|
|
95 silent! normal! zE
|
83
|
96 let s:l = 28 - ((27 * winheight(0) + 24) / 48)
|
67
|
97 if s:l < 1 | let s:l = 1 | endif
|
|
98 exe s:l
|
|
99 normal! zt
|
83
|
100 28
|
|
101 normal! 031|
|
|
102 lcd ~/Documents/Projects/STM-Quadrocopter
|
|
103 wincmd w
|
81
|
104 2wincmd w
|
83
|
105 exe 'vert 1resize ' . ((&columns * 91 + 92) / 184)
|
|
106 exe 'vert 2resize ' . ((&columns * 92 + 92) / 184)
|
81
|
107 tabnext 2
|
67
|
108 if exists('s:wipebuf')
|
|
109 " silent exe 'bwipe ' . s:wipebuf
|
|
110 endif
|
|
111 " unlet! s:wipebuf
|
83
|
112 set winheight=1 winwidth=20 shortmess=filnxtToO
|
67
|
113 let s:sx = expand("<sfile>:p:r")."x.vim"
|
|
114 if file_readable(s:sx)
|
|
115 exe "source " . fnameescape(s:sx)
|
|
116 endif
|
|
117 let &so = s:so_save | let &siso = s:siso_save
|
|
118
|
|
119 " Support for special windows like quick-fix and plug-in windows.
|
|
120 " Everything down here is generated by vim-session (not supported
|
|
121 " by :mksession out of the box).
|
|
122
|
81
|
123 2wincmd w
|
|
124 tabnext 2
|
67
|
125 if exists('s:wipebuf')
|
|
126 if empty(bufname(s:wipebuf))
|
|
127 if !getbufvar(s:wipebuf, '&modified')
|
|
128 let s:wipebuflines = getbufline(s:wipebuf, 1, '$')
|
|
129 if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, ''))
|
|
130 silent execute 'bwipeout' s:wipebuf
|
|
131 endif
|
|
132 endif
|
|
133 endif
|
|
134 endif
|
|
135 doautoall SessionLoadPost
|
|
136 unlet SessionLoad
|
|
137 " vim: ft=vim ro nowrap smc=128
|