changeset 82:5fd16ed8bb6d

Add vimsessions
author zegervdv <zegervdv@me.com>
date Sun, 27 Jul 2014 23:15:54 +0200
parents 044395254e27
children dd76ef1174f1
files vim/sessions/foundation.vim vim/sessions/quadcopter.vim vim/sessions/work.vim vimrc
diffstat 4 files changed, 376 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/sessions/foundation.vim	Sun Jul 27 23:15:54 2014 +0200
@@ -0,0 +1,143 @@
+" ~/.dotfiles/vim/sessions/foundation.vim:
+" Vim session script.
+" Created by session.vim 2.6.1 on 23 juli 2014 at 23:11:41.
+" Open this file in Vim and run :source % to restore your session.
+
+if exists('g:syntax_on') != 1 | syntax on | endif
+if exists('g:did_load_filetypes') != 1 | filetype on | endif
+if exists('g:did_load_ftplugin') != 1 | filetype plugin on | endif
+if exists('g:did_indent_on') != 1 | filetype indent on | endif
+if &background != 'light'
+	set background=light
+endif
+if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif
+call setqflist([])
+let SessionLoad = 1
+if &cp | set nocp | endif
+let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
+let v:this_session=expand("<sfile>:p")
+silent only
+cd ~/Documents/Projects/dotfiles_manager
+if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
+  let s:wipebuf = bufnr('%')
+endif
+set shortmess=aoO
+badd +1 lib/foundations.rb
+badd +25 lib/foundations/link.rb
+badd +9 spec/foundations/link_spec.rb
+badd +0 spec/foundations_spec.rb
+badd +18 lib/foundations/foundations.rb
+badd +0 spec/foundations/foundations_spec.rb
+" argglobal
+silent! argdel *
+argadd lib/foundations.rb
+edit lib/foundations.rb
+set splitbelow splitright
+wincmd _ | wincmd |
+vsplit
+1wincmd h
+wincmd _ | wincmd |
+split
+1wincmd k
+wincmd w
+wincmd w
+set nosplitbelow
+wincmd t
+set winheight=1 winwidth=1
+exe '1resize ' . ((&lines * 23 + 24) / 48)
+exe 'vert 1resize ' . ((&columns * 105 + 105) / 211)
+exe '2resize ' . ((&lines * 22 + 24) / 48)
+exe 'vert 2resize ' . ((&columns * 105 + 105) / 211)
+exe 'vert 3resize ' . ((&columns * 105 + 105) / 211)
+" argglobal
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 2 - ((1 * winheight(0) + 11) / 23)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+2
+normal! 07|
+lcd ~/Documents/Projects/dotfiles_manager
+wincmd w
+" argglobal
+edit ~/Documents/Projects/dotfiles_manager/spec/foundations/foundations_spec.rb
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 4 - ((3 * winheight(0) + 11) / 22)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+4
+normal! 012|
+lcd ~/Documents/Projects/dotfiles_manager
+wincmd w
+" argglobal
+edit ~/Documents/Projects/dotfiles_manager/lib/foundations/foundations.rb
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 3 - ((2 * winheight(0) + 23) / 46)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+3
+normal! 047|
+lcd ~/Documents/Projects/dotfiles_manager
+wincmd w
+exe '1resize ' . ((&lines * 23 + 24) / 48)
+exe 'vert 1resize ' . ((&columns * 105 + 105) / 211)
+exe '2resize ' . ((&lines * 22 + 24) / 48)
+exe 'vert 2resize ' . ((&columns * 105 + 105) / 211)
+exe 'vert 3resize ' . ((&columns * 105 + 105) / 211)
+tabnext 1
+if exists('s:wipebuf')
+"   silent exe 'bwipe ' . s:wipebuf
+endif
+" unlet! s:wipebuf
+set winheight=1 winwidth=20 shortmess=filnxtToOc
+let s:sx = expand("<sfile>:p:r")."x.vim"
+if file_readable(s:sx)
+  exe "source " . fnameescape(s:sx)
+endif
+let &so = s:so_save | let &siso = s:siso_save
+
+" Support for special windows like quick-fix and plug-in windows.
+" Everything down here is generated by vim-session (not supported
+" by :mksession out of the box).
+
+1wincmd w
+tabnext 1
+if exists('s:wipebuf')
+  if empty(bufname(s:wipebuf))
+if !getbufvar(s:wipebuf, '&modified')
+  let s:wipebuflines = getbufline(s:wipebuf, 1, '$')
+  if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, ''))
+    silent execute 'bwipeout' s:wipebuf
+  endif
+endif
+  endif
+endif
+doautoall SessionLoadPost
+unlet SessionLoad
+" vim: ft=vim ro nowrap smc=128
--- a/vim/sessions/quadcopter.vim	Sun Jul 27 20:10:51 2014 +0200
+++ b/vim/sessions/quadcopter.vim	Sun Jul 27 23:15:54 2014 +0200
@@ -3,14 +3,12 @@
 " Created by session.vim 2.6.1 on 27 juli 2014 at 20:08:24.
 " Open this file in Vim and run :source % to restore your session.
 
-set guioptions=egm
-silent! set guifont=Inconsolata\ for\ Powerline:h12
 if exists('g:syntax_on') != 1 | syntax on | endif
 if exists('g:did_load_filetypes') != 1 | filetype on | endif
 if exists('g:did_load_ftplugin') != 1 | filetype plugin on | endif
 if exists('g:did_indent_on') != 1 | filetype indent on | endif
-if &background != 'dark'
-	set background=dark
+if &background != 'light'
+	set background=light
 endif
 if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif
 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)
'}])
@@ -19,7 +17,7 @@
 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
 let v:this_session=expand("<sfile>:p")
 silent only
-cd ~/Documents/projects/STM-Quadcopter
+cd ~/Documents/Projects/STM-Quadrocopter
 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
   let s:wipebuf = bufnr('%')
 endif
@@ -191,7 +189,7 @@
 "   silent exe 'bwipe ' . s:wipebuf
 endif
 " unlet! s:wipebuf
-set winheight=1 winwidth=20 shortmess=filnxtToO
+set winheight=1 winwidth=20 shortmess=filnxtToOc
 let s:sx = expand("<sfile>:p:r")."x.vim"
 if file_readable(s:sx)
   exe "source " . fnameescape(s:sx)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/sessions/work.vim	Sun Jul 27 23:15:54 2014 +0200
@@ -0,0 +1,224 @@
+" ~/.dotfiles/vim/sessions/work.vim:
+" Vim session script.
+" Created by session.vim 2.6.1 on 25 juli 2014 at 18:09:07.
+" Open this file in Vim and run :source % to restore your session.
+
+set guioptions=egm
+silent! set guifont=Inconsolata\ for\ Powerline:h12
+if exists('g:syntax_on') != 1 | syntax on | endif
+if exists('g:did_load_filetypes') != 1 | filetype on | endif
+if exists('g:did_load_ftplugin') != 1 | filetype plugin on | endif
+if exists('g:did_indent_on') != 1 | filetype indent on | endif
+if &background != 'dark'
+	set background=dark
+endif
+if !exists('g:colors_name') || g:colors_name != 'hybrid' | colorscheme hybrid | endif
+call setqflist([{'lnum': 52, 'col': 5, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'source/main.c', 'text': '    USART_SendData(USART1, *str++);'}, {'lnum': 183, 'col': 9, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'source/main.c', 'text': '        USART_SendData(USART1, data[count]);'}, {'lnum': 534, 'col': 6, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_usart.h', 'text': 'void USART_SendData(USART_TypeDef* USARTx, uint16_t Data);
'}, {'lnum': 864, 'col': 68, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c', 'text': '         Whereas a write access to the USART_TDR can be done using USART_SendData()
'}, {'lnum': 877, 'col': 6, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c', 'text': 'void USART_SendData(USART_TypeDef* USARTx, uint16_t Data)
'}, {'lnum': 1878, 'col': 48, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c', 'text': '  *           operation to USART_TDR register (USART_SendData()).
'}, {'lnum': 1879, 'col': 73, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c', 'text': '  * @note     TXE flag is cleared by a write to the USART_TDR register (USART_SendData())
'}, {'lnum': 1980, 'col': 56, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c', 'text': '  *           a write operation to USART_TDR register (USART_SendData()).
'}, {'lnum': 1982, 'col': 16, 'valid': 1, 'vcol': 0, 'nr': -1, 'type': '', 'pattern': '', 'filename': 'STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c', 'text': '  *           (USART_SendData()) or by writing 1 to the TXFRQ in the register 
'}])
+let SessionLoad = 1
+if &cp | set nocp | endif
+let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
+let v:this_session=expand("<sfile>:p")
+silent only
+cd ~/Documents/UGent/Wifi-modules/controller
+if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
+  let s:wipebuf = bufnr('%')
+endif
+set shortmess=aoO
+badd +89 source/stm32f0_discovery.c
+badd +260 STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_gpio.h
+badd +417 STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_gpio.c
+badd +113 source/main.c
+badd +371 STM32F0-Discovery_FW_V1.0.0/Libraries/CMSIS/ST/STM32F0xx/Include/stm32f0xx.h
+badd +63 STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_misc.h
+badd +405 STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_usart.h
+badd +56 ~/Documents/UGent/Wifi-modules/config/config.py
+badd +0 ~/Documents/UGent/Wifi-modules/controller
+badd +32 ~/Documents/UGent/Wifi-modules/measurement
+badd +31 ~/Documents/UGent/Wifi-modules/process_dlogs
+badd +384 STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_rcc.h
+badd +901 STM32F0-Discovery_FW_V1.0.0/Libraries/STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c
+badd +111 source/stm32f0_discovery.h
+badd +0 source/Makefile
+" argglobal
+silent! argdel *
+argadd ~/Documents/UGent/Wifi-modules/controller
+edit source/main.c
+set splitbelow splitright
+wincmd _ | wincmd |
+vsplit
+1wincmd h
+wincmd w
+set nosplitbelow
+wincmd t
+set winheight=1 winwidth=1
+exe 'vert 1resize ' . ((&columns * 92 + 92) / 184)
+exe 'vert 2resize ' . ((&columns * 91 + 92) / 184)
+" argglobal
+setlocal fdm=syntax
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+18
+silent! normal! zo
+19
+silent! normal! zo
+32
+silent! normal! zo
+38
+silent! normal! zo
+40
+silent! normal! zo
+45
+silent! normal! zo
+49
+silent! normal! zo
+50
+silent! normal! zo
+55
+silent! normal! zo
+55
+silent! normal! zo
+158
+silent! normal! zo
+172
+silent! normal! zo
+173
+silent! normal! zo
+55
+silent! normal! zo
+169
+silent! normal! zo
+180
+silent! normal! zo
+181
+silent! normal! zo
+let s:l = 63 - ((4 * winheight(0) + 24) / 48)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+63
+normal! 05|
+lcd ~/Documents/UGent/Wifi-modules/controller
+wincmd w
+" argglobal
+edit ~/Documents/UGent/Wifi-modules/controller/source/stm32f0_discovery.h
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 111 - ((23 * winheight(0) + 24) / 48)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+111
+normal! 0
+lcd ~/Documents/UGent/Wifi-modules/controller
+wincmd w
+exe 'vert 1resize ' . ((&columns * 92 + 92) / 184)
+exe 'vert 2resize ' . ((&columns * 91 + 92) / 184)
+tabedit ~/Documents/UGent/Wifi-modules/controller/source/Makefile
+set splitbelow splitright
+set nosplitbelow
+wincmd t
+set winheight=1 winwidth=1
+" argglobal
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 5 - ((4 * winheight(0) + 24) / 48)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+5
+normal! 0
+lcd ~/Documents/UGent/Wifi-modules/controller
+tabedit ~/Documents/UGent/Wifi-modules/config/config.py
+set splitbelow splitright
+set nosplitbelow
+wincmd t
+set winheight=1 winwidth=1
+" argglobal
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 52 - ((4 * winheight(0) + 24) / 48)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+52
+normal! 039|
+lcd ~/Documents/UGent/Wifi-modules/controller
+tabedit ~/Documents/UGent/Wifi-modules/measurement
+set splitbelow splitright
+set nosplitbelow
+wincmd t
+set winheight=1 winwidth=1
+" argglobal
+setlocal fdm=manual
+setlocal fde=0
+setlocal fmr={{{,}}}
+setlocal fdi=#
+setlocal fdl=0
+setlocal fml=1
+setlocal fdn=20
+setlocal fen
+silent! normal! zE
+let s:l = 52 - ((4 * winheight(0) + 24) / 48)
+if s:l < 1 | let s:l = 1 | endif
+exe s:l
+normal! zt
+52
+normal! 015|
+lcd ~/Documents/UGent/Wifi-modules/controller
+tabnext 1
+if exists('s:wipebuf')
+"   silent exe 'bwipe ' . s:wipebuf
+endif
+" unlet! s:wipebuf
+set winheight=1 winwidth=20 shortmess=filnxtToO
+let s:sx = expand("<sfile>:p:r")."x.vim"
+if file_readable(s:sx)
+  exe "source " . fnameescape(s:sx)
+endif
+let &so = s:so_save | let &siso = s:siso_save
+
+" Support for special windows like quick-fix and plug-in windows.
+" Everything down here is generated by vim-session (not supported
+" by :mksession out of the box).
+
+1wincmd w
+tabnext 1
+if exists('s:wipebuf')
+  if empty(bufname(s:wipebuf))
+if !getbufvar(s:wipebuf, '&modified')
+  let s:wipebuflines = getbufline(s:wipebuf, 1, '$')
+  if len(s:wipebuflines) <= 1 && empty(get(s:wipebuflines, 0, ''))
+    silent execute 'bwipeout' s:wipebuf
+  endif
+endif
+  endif
+endif
+doautoall SessionLoadPost
+unlet SessionLoad
+" vim: ft=vim ro nowrap smc=128
--- a/vimrc	Sun Jul 27 20:10:51 2014 +0200
+++ b/vimrc	Sun Jul 27 23:15:54 2014 +0200
@@ -143,8 +143,11 @@
 nnoremap <C-j> <C-w>j
 nnoremap <C-k> <C-w><C-k>
 
-nnoremap <C-S-TAB>  :tabprevious<CR>
-nnoremap <C-TAB>    :tabnext<CR>
+nnoremap <S-j>  :tabprevious<CR>
+nnoremap <S-k>  :tabnext<CR>
+nnoremap <S-h>  :tabfirst<CR>
+nnoremap <S-l>  :tablast<CR>
+nnoremap <S-t>  :tabnew<CR>
 inoremap <C-S-TAB>  <ESC>:tabprevious<CR>
 inoremap <C-TAB>    <ESC>:tabnext<CR>