Mercurial > dotfiles.old
view vim/sessions/foundation.vim @ 224:30eb5cded521
Add parenthesis matching function
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 13 Jan 2015 18:57:47 +0100 |
parents | 5fd16ed8bb6d |
children |
line wrap: on
line source
" ~/.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