2 if &cp | set nocp | endif
5 map! <F9>
\x16\e:make
\x16\r\x16\r
6 map
\x16\x13 \x16\e:w
\x16\r
8 nmap gx <Plug>NetrwBrowseX
9 nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("
\x16<cWORD>"),0)
\x16\r
10 map <F9>
\x16\e:make
\x16\r\x16\r
11 map!
\x16\x13 \x16\e:w
\x16\r
12 inoremap
\x16\x15 \x16\au
\x16\x15
19 set backspace=indent,eol,start
21 set fileencodings=ucs-bom,utf-8,default,latin1
27 set printoptions=paper:a4
29 set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim72,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
33 set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
36 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
37 let v:this_session=expand("<sfile>:p")
40 if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
41 let s:wipebuf = bufnr('%')
52 args cpptolua cpptolua.l cpptolua.y in.cpp makefile
54 set splitbelow splitright
62 set winheight=1 winwidth=1
63 exe '1resize ' . ((&lines * 38 + 26) / 52)
64 exe '2resize ' . ((&lines * 10 + 26) / 52)
75 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
77 setlocal cinwords=if,else,while,do,for,switch
78 setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
79 setlocal commentstring=/*%s*/
80 setlocal complete=.,w,b,u,t,i
81 setlocal completefunc=
83 setlocal nocursorcolumn
99 setlocal foldmarker={{{,}}}
100 setlocal foldmethod=manual
101 setlocal foldminlines=1
102 setlocal foldnestmax=20
103 setlocal foldtext=foldtext()
105 setlocal formatoptions=tcq
106 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
111 setlocal includeexpr=
113 setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
115 setlocal iskeyword=@,48-57,_,192-255
121 setlocal matchpairs=(:),{:},[:]
124 setlocal nrformats=octal,hex
127 setlocal numberwidth=4
130 setlocal nopreserveindent
131 setlocal nopreviewwindow
132 setlocal quoteescape=\\
135 setlocal rightleftcmd=search
136 setlocal noscrollbind
137 setlocal shiftwidth=2
140 setlocal softtabstop=0
142 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
144 setlocal spelllang=en
146 setlocal suffixesadd=
148 setlocal synmaxcol=3000
156 setlocal nowinfixheight
157 setlocal nowinfixwidth
159 setlocal wrapmargin=0
161 let s:l = 8 - ((7 * winheight(0) + 19) / 38)
162 if s:l < 1 | let s:l = 1 | endif
175 setlocal bufhidden=wipe
177 setlocal buftype=quickfix
179 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
181 setlocal cinwords=if,else,while,do,for,switch
182 setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
183 setlocal commentstring=/*%s*/
184 setlocal complete=.,w,b,u,t,i
185 setlocal completefunc=
186 setlocal nocopyindent
187 setlocal nocursorcolumn
188 setlocal nocursorline
193 setlocal errorformat=
198 setlocal foldcolumn=0
201 setlocal foldignore=#
203 setlocal foldmarker={{{,}}}
204 setlocal foldmethod=manual
205 setlocal foldminlines=1
206 setlocal foldnestmax=20
207 setlocal foldtext=foldtext()
209 setlocal formatoptions=tcq
210 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
215 setlocal includeexpr=
217 setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
219 setlocal iskeyword=@,48-57,_,192-255
225 setlocal matchpairs=(:),{:},[:]
227 setlocal nomodifiable
228 setlocal nrformats=octal,hex
231 setlocal numberwidth=4
234 setlocal nopreserveindent
235 setlocal nopreviewwindow
236 setlocal quoteescape=\\
239 setlocal rightleftcmd=search
240 setlocal noscrollbind
241 setlocal shiftwidth=2
244 setlocal softtabstop=0
246 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
248 setlocal spelllang=en
250 setlocal suffixesadd=
252 setlocal synmaxcol=3000
260 setlocal winfixheight
261 setlocal nowinfixwidth
263 setlocal wrapmargin=0
265 exe '1resize ' . ((&lines * 38 + 26) / 52)
266 exe '2resize ' . ((&lines * 10 + 26) / 52)
268 set splitbelow splitright
276 set winheight=1 winwidth=1
277 exe '1resize ' . ((&lines * 38 + 26) / 52)
278 exe '2resize ' . ((&lines * 10 + 26) / 52)
289 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
291 setlocal cinwords=if,else,while,do,for,switch
292 setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
293 setlocal commentstring=/*%s*/
294 setlocal complete=.,w,b,u,t,i
295 setlocal completefunc=
296 setlocal nocopyindent
297 setlocal nocursorcolumn
298 setlocal nocursorline
303 setlocal errorformat=
305 if &filetype != 'yacc'
306 setlocal filetype=yacc
308 setlocal foldcolumn=0
311 setlocal foldignore=#
313 setlocal foldmarker={{{,}}}
314 setlocal foldmethod=manual
315 setlocal foldminlines=1
316 setlocal foldnestmax=20
317 setlocal foldtext=foldtext()
319 setlocal formatoptions=tcq
320 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
325 setlocal includeexpr=
326 setlocal indentexpr=GetYaccIndent()
327 setlocal indentkeys=!^F,o,O
329 setlocal iskeyword=@,48-57,_,192-255
335 setlocal matchpairs=(:),{:},[:]
338 setlocal nrformats=octal,hex
341 setlocal numberwidth=4
344 setlocal nopreserveindent
345 setlocal nopreviewwindow
346 setlocal quoteescape=\\
349 setlocal rightleftcmd=search
350 setlocal noscrollbind
351 setlocal shiftwidth=2
353 setlocal nosmartindent
354 setlocal softtabstop=0
356 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
358 setlocal spelllang=en
360 setlocal suffixesadd=
362 setlocal synmaxcol=3000
370 setlocal nowinfixheight
371 setlocal nowinfixwidth
373 setlocal wrapmargin=0
375 let s:l = 92 - ((37 * winheight(0) + 19) / 38)
376 if s:l < 1 | let s:l = 1 | endif
389 setlocal bufhidden=wipe
391 setlocal buftype=quickfix
393 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
395 setlocal cinwords=if,else,while,do,for,switch
396 setlocal comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
397 setlocal commentstring=/*%s*/
398 setlocal complete=.,w,b,u,t,i
399 setlocal completefunc=
400 setlocal nocopyindent
401 setlocal nocursorcolumn
402 setlocal nocursorline
407 setlocal errorformat=
412 setlocal foldcolumn=0
415 setlocal foldignore=#
417 setlocal foldmarker={{{,}}}
418 setlocal foldmethod=manual
419 setlocal foldminlines=1
420 setlocal foldnestmax=20
421 setlocal foldtext=foldtext()
423 setlocal formatoptions=tcq
424 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
429 setlocal includeexpr=
431 setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
433 setlocal iskeyword=@,48-57,_,192-255
439 setlocal matchpairs=(:),{:},[:]
441 setlocal nomodifiable
442 setlocal nrformats=octal,hex
445 setlocal numberwidth=4
448 setlocal nopreserveindent
449 setlocal nopreviewwindow
450 setlocal quoteescape=\\
453 setlocal rightleftcmd=search
454 setlocal noscrollbind
455 setlocal shiftwidth=2
458 setlocal softtabstop=0
460 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
462 setlocal spelllang=en
464 setlocal suffixesadd=
466 setlocal synmaxcol=3000
474 setlocal winfixheight
475 setlocal nowinfixwidth
477 setlocal wrapmargin=0
479 exe '1resize ' . ((&lines * 38 + 26) / 52)
480 exe '2resize ' . ((&lines * 10 + 26) / 52)
482 set splitbelow splitright
486 set winheight=1 winwidth=1
497 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
499 setlocal cinwords=if,else,while,do,for,switch
500 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
501 setlocal commentstring=/*%s*/
502 setlocal complete=.,w,b,u,t,i
503 setlocal completefunc=
504 setlocal nocopyindent
505 setlocal nocursorcolumn
506 setlocal nocursorline
511 setlocal errorformat=
513 if &filetype != 'cpp'
514 setlocal filetype=cpp
516 setlocal foldcolumn=0
519 setlocal foldignore=#
521 setlocal foldmarker={{{,}}}
522 setlocal foldmethod=manual
523 setlocal foldminlines=1
524 setlocal foldnestmax=20
525 setlocal foldtext=foldtext()
527 setlocal formatoptions=croql
528 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
533 setlocal includeexpr=
535 setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
537 setlocal iskeyword=@,48-57,_,192-255
543 setlocal matchpairs=(:),{:},[:]
546 setlocal nrformats=octal,hex
549 setlocal numberwidth=4
550 setlocal omnifunc=ccomplete#Complete
552 setlocal nopreserveindent
553 setlocal nopreviewwindow
554 setlocal quoteescape=\\
557 setlocal rightleftcmd=search
558 setlocal noscrollbind
559 setlocal shiftwidth=2
562 setlocal softtabstop=0
564 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
566 setlocal spelllang=en
568 setlocal suffixesadd=
570 setlocal synmaxcol=3000
578 setlocal nowinfixheight
579 setlocal nowinfixwidth
581 setlocal wrapmargin=0
583 let s:l = 8 - ((7 * winheight(0) + 25) / 50)
584 if s:l < 1 | let s:l = 1 | endif
590 set splitbelow splitright
594 set winheight=1 winwidth=1
605 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
607 setlocal cinwords=if,else,while,do,for,switch
608 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
609 setlocal commentstring=/*%s*/
610 setlocal complete=.,w,b,u,t,i
611 setlocal completefunc=
612 setlocal nocopyindent
613 setlocal nocursorcolumn
614 setlocal nocursorline
619 setlocal errorformat=
621 if &filetype != 'cpp'
622 setlocal filetype=cpp
624 setlocal foldcolumn=0
627 setlocal foldignore=#
629 setlocal foldmarker={{{,}}}
630 setlocal foldmethod=manual
631 setlocal foldminlines=1
632 setlocal foldnestmax=20
633 setlocal foldtext=foldtext()
635 setlocal formatoptions=croql
636 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
641 setlocal includeexpr=
643 setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
645 setlocal iskeyword=@,48-57,_,192-255
651 setlocal matchpairs=(:),{:},[:]
654 setlocal nrformats=octal,hex
657 setlocal numberwidth=4
658 setlocal omnifunc=ccomplete#Complete
660 setlocal nopreserveindent
661 setlocal nopreviewwindow
662 setlocal quoteescape=\\
665 setlocal rightleftcmd=search
666 setlocal noscrollbind
667 setlocal shiftwidth=2
670 setlocal softtabstop=0
672 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
674 setlocal spelllang=en
676 setlocal suffixesadd=
678 setlocal synmaxcol=3000
686 setlocal nowinfixheight
687 setlocal nowinfixwidth
689 setlocal wrapmargin=0
691 let s:l = 1 - ((0 * winheight(0) + 26) / 52)
692 if s:l < 1 | let s:l = 1 | endif
698 set splitbelow splitright
702 set winheight=1 winwidth=1
713 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
715 setlocal cinwords=if,else,while,do,for,switch
716 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
717 setlocal commentstring=/*%s*/
718 setlocal complete=.,w,b,u,t,i
719 setlocal completefunc=
720 setlocal nocopyindent
721 setlocal nocursorcolumn
722 setlocal nocursorline
727 setlocal errorformat=
729 if &filetype != 'cpp'
730 setlocal filetype=cpp
732 setlocal foldcolumn=0
735 setlocal foldignore=#
737 setlocal foldmarker={{{,}}}
738 setlocal foldmethod=manual
739 setlocal foldminlines=1
740 setlocal foldnestmax=20
741 setlocal foldtext=foldtext()
743 setlocal formatoptions=croql
744 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
749 setlocal includeexpr=
751 setlocal indentkeys=0{,0},:,0#,!^F,o,O,e
753 setlocal iskeyword=@,48-57,_,192-255
759 setlocal matchpairs=(:),{:},[:]
762 setlocal nrformats=octal,hex
765 setlocal numberwidth=4
766 setlocal omnifunc=ccomplete#Complete
768 setlocal nopreserveindent
769 setlocal nopreviewwindow
770 setlocal quoteescape=\\
773 setlocal rightleftcmd=search
774 setlocal noscrollbind
775 setlocal shiftwidth=2
778 setlocal softtabstop=0
780 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
782 setlocal spelllang=en
784 setlocal suffixesadd=
786 setlocal synmaxcol=3000
794 setlocal nowinfixheight
795 setlocal nowinfixwidth
797 setlocal wrapmargin=0
799 let s:l = 54 - ((43 * winheight(0) + 26) / 52)
800 if s:l < 1 | let s:l = 1 | endif
806 set splitbelow splitright
810 set winheight=1 winwidth=1
821 setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e
823 setlocal cinwords=if,else,while,do,for,switch
824 setlocal comments=sO:#\ -,mO:#\ \ ,b:#
825 setlocal commentstring=#\ %s
826 setlocal complete=.,w,b,u,t,i
827 setlocal completefunc=
828 setlocal nocopyindent
829 setlocal nocursorcolumn
830 setlocal nocursorline
835 setlocal errorformat=
837 if &filetype != 'make'
838 setlocal filetype=make
840 setlocal foldcolumn=0
843 setlocal foldignore=#
845 setlocal foldmarker={{{,}}}
846 setlocal foldmethod=manual
847 setlocal foldminlines=1
848 setlocal foldnestmax=20
849 setlocal foldtext=foldtext()
851 setlocal formatoptions=croql
852 setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
856 setlocal include=^\\s*include
857 setlocal includeexpr=
858 setlocal indentexpr=GetMakeIndent()
859 setlocal indentkeys=!^F,o,O,<:>,=else,=endif
861 setlocal iskeyword=@,48-57,_,192-255
867 setlocal matchpairs=(:),{:},[:]
870 setlocal nrformats=octal,hex
873 setlocal numberwidth=4
876 setlocal nopreserveindent
877 setlocal nopreviewwindow
878 setlocal quoteescape=\\
881 setlocal rightleftcmd=search
882 setlocal noscrollbind
883 setlocal shiftwidth=2
885 setlocal nosmartindent
886 setlocal softtabstop=0
888 setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
890 setlocal spelllang=en
892 setlocal suffixesadd=
894 setlocal synmaxcol=3000
902 setlocal nowinfixheight
903 setlocal nowinfixwidth
905 setlocal wrapmargin=0
907 let s:l = 1 - ((0 * winheight(0) + 25) / 50)
908 if s:l < 1 | let s:l = 1 | endif
914 if exists('s:wipebuf')
915 silent exe 'bwipe ' . s:wipebuf
918 set winheight=1 winwidth=20 shortmess=filnxtToO
919 let s:sx = expand("<sfile>:p:r")."x.vim"
920 if file_readable(s:sx)
921 exe "source " . fnameescape(s:sx)
923 let &so = s:so_save | let &siso = s:siso_save
924 doautoall SessionLoadPost