if &cp | set nocp | endif let s:cpo_save=&cpo set cpo&vim inoremap :call AddHeader() map! map! map! map! map! map! map! map! map! map! nmap ,d :call InsertMethodTracer() nmap ,i :call IncludeGuard() o vmap ,u :s,^//X ,, vmap ,c :s,^,//X , :noh nmap ,h :call SwitchHeaderImpl() vnoremap p :let current_reg = @" gvdi=current_reg  map map map map map map map map map map inoremap  =SmartTab() inoremap ( =SmartParens( '(' ) inoremap ) =SmartParens( ')', '(' ) inoremap [ =SmartParens( '[' ) inoremap ] =SmartParens( ']', '[' ) iabbr DIFF :call RunDiff() iabbr #i =SmartInclude() let &cpo=s:cpo_save unlet s:cpo_save set autoindent set autowrite set background=dark set backspace=2 set cindent set fileencodings=ucs-bom,utf-8,latin1 set helplang=en set hlsearch set incsearch set listchars=tab:·\ ,trail:· set path=.,/usr/include,/usr/local/include,,, set printoptions=paper:a4 set ruler set runtimepath=~/.vim,/etc/vim,/usr/share/vim/vimfiles,/usr/share/vim/addons,/usr/share/vim/vim63,/usr/share/vim/vimfiles,/usr/share/vim/addons/after,~/.vim/after set shiftwidth=3 set showmatch set smartcase set smartindent set softtabstop=3 set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.lo,.o,.moc,.la,.closure,.loT set tabstop=3 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 let v:this_session=expand(":p") silent only cd ~/ set shortmess=aoO badd +64 mbr.asc badd +1 mbr.asm badd +1 mbr_memory_map badd +4 mbr_flow_diagram badd +12 mbr_data_map args mbr.asc edit mbr.asm set splitbelow splitright wincmd _ | wincmd | vsplit 1wincmd h wincmd w wincmd _ | wincmd | split wincmd _ | wincmd | split 2wincmd k wincmd w wincmd w set nosplitbelow set nosplitright wincmd t set winheight=1 winwidth=1 exe 'vert 1resize ' . ((&columns * 82 + 85) / 170) exe '2resize ' . ((&lines * 26 + 26) / 53) exe 'vert 2resize ' . ((&columns * 87 + 85) / 170) exe '3resize ' . ((&lines * 5 + 26) / 53) exe 'vert 3resize ' . ((&columns * 87 + 85) / 170) exe '4resize ' . ((&lines * 18 + 26) / 53) exe 'vert 4resize ' . ((&columns * 87 + 85) / 170) argglobal setlocal noarabic setlocal autoindent setlocal autoread setlocal nobinary setlocal bufhidden= setlocal buflisted setlocal buftype= setlocal cindent setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e setlocal cinoptions= setlocal cinwords=if,else,while,do,for,switch setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:- setlocal commentstring=/*%s*/ setlocal complete=.,w,b,u,t,i setlocal nocopyindent setlocal define= setlocal dictionary= setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab if &filetype != 'asm' setlocal filetype=asm endif setlocal foldcolumn=0 setlocal foldenable setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 setlocal foldmarker={{{,}}} setlocal foldmethod=manual setlocal foldminlines=1 setlocal foldnestmax=20 setlocal foldtext=foldtext() setlocal formatoptions=tcq setlocal grepprg= setlocal iminsert=2 setlocal imsearch=2 setlocal include= setlocal includeexpr= setlocal indentexpr= setlocal indentkeys=0{,0},:,0#,!^F,o,O,e setlocal noinfercase setlocal iskeyword=@,48-57,_,192-255 setlocal keymap= setlocal keywordprg= setlocal nolinebreak setlocal nolisp set list setlocal list setlocal makeprg= setlocal matchpairs=(:),{:},[:] setlocal modeline setlocal modifiable setlocal nrformats=octal,hex setlocal nonumber setlocal path= setlocal nopreserveindent setlocal nopreviewwindow setlocal noreadonly setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind setlocal shiftwidth=3 setlocal noshortname setlocal smartindent setlocal softtabstop=3 setlocal suffixesadd= setlocal swapfile if &syntax != 'asm' setlocal syntax=asm endif setlocal tabstop=3 setlocal tags= setlocal textwidth=0 setlocal thesaurus= setlocal nowinfixheight setlocal wrap setlocal wrapmargin=0 silent! normal! zE let s:l = 168 - ((32 * winheight(0) + 25) / 51) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt 168 normal! 0 wincmd w argglobal edit mbr_data_map setlocal noarabic setlocal autoindent setlocal autoread setlocal nobinary setlocal bufhidden= setlocal buflisted setlocal buftype= setlocal cindent setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e setlocal cinoptions= setlocal cinwords=if,else,while,do,for,switch setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:- setlocal commentstring=/*%s*/ setlocal complete=.,w,b,u,t,i setlocal nocopyindent setlocal define= setlocal dictionary= setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab if &filetype != '' setlocal filetype= endif setlocal foldcolumn=0 setlocal foldenable setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 setlocal foldmarker={{{,}}} setlocal foldmethod=manual setlocal foldminlines=1 setlocal foldnestmax=20 setlocal foldtext=foldtext() setlocal formatoptions=tcq setlocal grepprg= setlocal iminsert=2 setlocal imsearch=2 setlocal include= setlocal includeexpr= setlocal indentexpr= setlocal indentkeys=0{,0},:,0#,!^F,o,O,e setlocal noinfercase setlocal iskeyword=@,48-57,_,192-255 setlocal keymap= setlocal keywordprg= setlocal nolinebreak setlocal nolisp set list setlocal list setlocal makeprg= setlocal matchpairs=(:),{:},[:] setlocal modeline setlocal modifiable setlocal nrformats=octal,hex setlocal nonumber setlocal path= setlocal nopreserveindent setlocal nopreviewwindow setlocal noreadonly setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind setlocal shiftwidth=3 setlocal noshortname setlocal smartindent setlocal softtabstop=3 setlocal suffixesadd= setlocal swapfile if &syntax != '' setlocal syntax= endif setlocal tabstop=3 setlocal tags= setlocal textwidth=0 setlocal thesaurus= setlocal nowinfixheight setlocal wrap setlocal wrapmargin=0 silent! normal! zE let s:l = 35 - ((24 * winheight(0) + 13) / 26) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt 35 normal! 0 wincmd w argglobal edit mbr_memory_map setlocal noarabic setlocal autoindent setlocal autoread setlocal nobinary setlocal bufhidden= setlocal buflisted setlocal buftype= setlocal cindent setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e setlocal cinoptions= setlocal cinwords=if,else,while,do,for,switch setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:- setlocal commentstring=/*%s*/ setlocal complete=.,w,b,u,t,i setlocal nocopyindent setlocal define= setlocal dictionary= setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab if &filetype != '' setlocal filetype= endif setlocal foldcolumn=0 setlocal foldenable setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 setlocal foldmarker={{{,}}} setlocal foldmethod=manual setlocal foldminlines=1 setlocal foldnestmax=20 setlocal foldtext=foldtext() setlocal formatoptions=tcq setlocal grepprg= setlocal iminsert=2 setlocal imsearch=2 setlocal include= setlocal includeexpr= setlocal indentexpr= setlocal indentkeys=0{,0},:,0#,!^F,o,O,e setlocal noinfercase setlocal iskeyword=@,48-57,_,192-255 setlocal keymap= setlocal keywordprg= setlocal nolinebreak setlocal nolisp set list setlocal list setlocal makeprg= setlocal matchpairs=(:),{:},[:] setlocal modeline setlocal modifiable setlocal nrformats=octal,hex setlocal nonumber setlocal path= setlocal nopreserveindent setlocal nopreviewwindow setlocal noreadonly setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind setlocal shiftwidth=3 setlocal noshortname setlocal smartindent setlocal softtabstop=3 setlocal suffixesadd= setlocal swapfile if &syntax != '' setlocal syntax= endif setlocal tabstop=3 setlocal tags= setlocal textwidth=0 setlocal thesaurus= setlocal nowinfixheight setlocal wrap setlocal wrapmargin=0 silent! normal! zE let s:l = 3 - ((2 * winheight(0) + 2) / 5) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt 3 normal! 012l wincmd w argglobal edit mbr.asc setlocal noarabic setlocal autoindent setlocal autoread setlocal nobinary setlocal bufhidden= setlocal buflisted setlocal buftype= setlocal cindent setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e setlocal cinoptions= setlocal cinwords=if,else,while,do,for,switch setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:- setlocal commentstring=/*%s*/ setlocal complete=.,w,b,u,t,i setlocal nocopyindent setlocal define= setlocal dictionary= setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab if &filetype != '' setlocal filetype= endif setlocal foldcolumn=0 setlocal foldenable setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 setlocal foldmarker={{{,}}} setlocal foldmethod=manual setlocal foldminlines=1 setlocal foldnestmax=20 setlocal foldtext=foldtext() setlocal formatoptions=tcq setlocal grepprg= setlocal iminsert=2 setlocal imsearch=2 setlocal include= setlocal includeexpr= setlocal indentexpr= setlocal indentkeys=0{,0},:,0#,!^F,o,O,e setlocal noinfercase setlocal iskeyword=@,48-57,_,192-255 setlocal keymap= setlocal keywordprg= setlocal nolinebreak setlocal nolisp set list setlocal list setlocal makeprg= setlocal matchpairs=(:),{:},[:] setlocal modeline setlocal modifiable setlocal nrformats=octal,hex setlocal nonumber setlocal path= setlocal nopreserveindent setlocal nopreviewwindow setlocal noreadonly setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind setlocal shiftwidth=3 setlocal noshortname setlocal smartindent setlocal softtabstop=3 setlocal suffixesadd= setlocal swapfile if &syntax != '' setlocal syntax= endif setlocal tabstop=3 setlocal tags= setlocal textwidth=0 setlocal thesaurus= setlocal nowinfixheight setlocal wrap setlocal wrapmargin=0 silent! normal! zE let s:l = 1 - ((0 * winheight(0) + 9) / 18) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt 1 normal! 015l wincmd w exe 'vert 1resize ' . ((&columns * 82 + 85) / 170) exe '2resize ' . ((&lines * 26 + 26) / 53) exe 'vert 2resize ' . ((&columns * 87 + 85) / 170) exe '3resize ' . ((&lines * 5 + 26) / 53) exe 'vert 3resize ' . ((&columns * 87 + 85) / 170) exe '4resize ' . ((&lines * 18 + 26) / 53) exe 'vert 4resize ' . ((&columns * 87 + 85) / 170) set winheight=1 winwidth=20 shortmess=filnxtToO let s:sx = expand(":p:r")."x.vim" if file_readable(s:sx) exe "source " . s:sx endif let &so = s:so_save | let &siso = s:siso_save