From 71f02b4a701b6fb5f54950ef9925672b8c608211 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 1 Nov 2008 19:09:58 +0000 Subject: renamed to std name --- Session.vim | 176 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 Session.vim (limited to 'Session.vim') diff --git a/Session.vim b/Session.vim new file mode 100644 index 0000000..88a7555 --- /dev/null +++ b/Session.vim @@ -0,0 +1,176 @@ +let SessionLoad = 1 +if &cp | set nocp | endif +map + :next  +map ,e :e =expand("%:p:h") . "/"  +map ,conf :source ~/.vimrc  +map ,v :sp ~/.vimrc  +map ,u :set ff=unix  +map ,t :w!  :make test +map ,r :w!  :make run +map ,m :w!  :make +map ,d :set ff=dos  +map - :previous  +let s:cpo_save=&cpo +set cpo&vim +nmap gx NetrwBrowseX +map t :TlistToggle +nnoremap NetrwBrowseX :call netrw#NetBrowseX(expand(""),0) +iabbr sout System.out.println +iabbr ite \item +iabbr tabul \begin{tabular}{}  \end{tabular} 2ki +iabbr bitem \begin{itemize}  \end{itemize} 2ki \item +iabbr benum \begin{enumerate}  \end{enumerate} 2ki \item +iabbr nsssec \subsubsection{}ba +iabbr nssec \subsection{}ba +iabbr nsec \section{}ba +let &cpo=s:cpo_save +unlet s:cpo_save +set autoindent +set background=dark +set backup +set backupdir=~/.vim/backups +set cindent +set ignorecase +set incsearch +set ruler +set shiftwidth=3 +set showcmd +set showmatch +set smartcase +set tabstop=4 +set tags=./tags,./TAGS,tags,TAGS,./tags,./../tags,./../../tags,./*/tags +set title +set visualbell +let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 +let v:this_session=expand(":p") +silent only +cd ~/svn/fype/trunk +if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' + let s:wipebuf = bufnr('%') +endif +set shortmess=aoO +badd +1 src/core/interpret.h +args src/core/interpret.h +edit src/core/interpret.h +set splitbelow splitright +set nosplitbelow +set nosplitright +wincmd t +set winheight=1 winwidth=1 +argglobal +setlocal keymap= +setlocal noarabic +setlocal autoindent +setlocal balloonexpr= +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 completefunc= +setlocal nocopyindent +setlocal nocursorcolumn +set cursorline +setlocal cursorline +setlocal define= +setlocal dictionary= +setlocal nodiff +setlocal equalprg= +setlocal errorformat= +setlocal noexpandtab +if &filetype != 'cpp' +setlocal filetype=cpp +endif +setlocal foldcolumn=0 +setlocal foldenable +setlocal foldexpr=0 +setlocal foldignore=# +setlocal foldlevel=0 +setlocal foldmarker={{{,}}} +set foldmethod=indent +setlocal foldmethod=indent +setlocal foldminlines=1 +setlocal foldnestmax=20 +setlocal foldtext=foldtext() +setlocal formatexpr= +setlocal formatoptions=tcq +setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* +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 keywordprg= +setlocal nolinebreak +setlocal nolisp +setlocal nolist +setlocal makeprg= +setlocal matchpairs=(:),{:},[:] +setlocal modeline +setlocal modifiable +setlocal nrformats=octal,hex +setlocal nonumber +set numberwidth=1 +setlocal numberwidth=1 +setlocal omnifunc= +setlocal path= +setlocal nopreserveindent +setlocal nopreviewwindow +setlocal quoteescape=\\ +setlocal noreadonly +setlocal norightleft +setlocal rightleftcmd=search +setlocal noscrollbind +setlocal shiftwidth=3 +setlocal noshortname +setlocal nosmartindent +setlocal softtabstop=0 +setlocal nospell +setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ +setlocal spellfile= +setlocal spelllang=en +setlocal statusline= +setlocal suffixesadd= +setlocal swapfile +setlocal synmaxcol=3000 +if &syntax != 'cpp' +setlocal syntax=cpp +endif +setlocal tabstop=4 +setlocal tags= +setlocal textwidth=0 +setlocal thesaurus= +setlocal nowinfixheight +setlocal nowinfixwidth +setlocal wrap +setlocal wrapmargin=0 +let s:l = 1 - ((0 * winheight(0) + 17) / 35) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +1 +normal! 0 +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(":p:r")."x.vim" +if file_readable(s:sx) + exe "source " . s:sx +endif +let &so = s:so_save | let &siso = s:siso_save +doautoall SessionLoadPost +unlet SessionLoad +" vim: set ft=vim : -- cgit v1.2.3 From 48cf82bfc6cd65cc95f7658582fc532602a85ac0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 4 Nov 2008 20:42:29 +0000 Subject: few more make fules. --- Session.vim | 357 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 351 insertions(+), 6 deletions(-) (limited to 'Session.vim') diff --git a/Session.vim b/Session.vim index 88a7555..1358ee6 100644 --- a/Session.vim +++ b/Session.vim @@ -41,6 +41,7 @@ set tabstop=4 set tags=./tags,./TAGS,tags,TAGS,./tags,./../tags,./../../tags,./*/tags set title set visualbell +set window=46 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 let v:this_session=expand(":p") silent only @@ -49,15 +50,241 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' let s:wipebuf = bufnr('%') endif set shortmess=aoO -badd +1 src/core/interpret.h +badd +51 src/core/interpret.h +badd +26 tmp/test.fy +badd +81 src/defines.h +badd +0 TODO args src/core/interpret.h -edit src/core/interpret.h +edit TODO set splitbelow splitright +wincmd _ | wincmd | +vsplit +1wincmd h +wincmd _ | wincmd | +split +1wincmd k +wincmd w +wincmd w set nosplitbelow set nosplitright wincmd t set winheight=1 winwidth=1 +exe '1resize ' . ((&lines * 22 + 23) / 47) +exe 'vert 1resize ' . ((&columns * 71 + 71) / 143) +exe '2resize ' . ((&lines * 21 + 23) / 47) +exe 'vert 2resize ' . ((&columns * 71 + 71) / 143) +exe 'vert 3resize ' . ((&columns * 71 + 71) / 143) +argglobal +setlocal keymap= +setlocal noarabic +setlocal autoindent +setlocal balloonexpr= +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 completefunc= +setlocal nocopyindent +setlocal nocursorcolumn +set cursorline +setlocal cursorline +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={{{,}}} +set foldmethod=indent +setlocal foldmethod=indent +setlocal foldminlines=1 +setlocal foldnestmax=20 +setlocal foldtext=foldtext() +setlocal formatexpr= +setlocal formatoptions=tcq +setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* +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 keywordprg= +setlocal nolinebreak +setlocal nolisp +setlocal nolist +setlocal makeprg= +setlocal matchpairs=(:),{:},[:] +setlocal modeline +setlocal modifiable +setlocal nrformats=octal,hex +setlocal nonumber +set numberwidth=1 +setlocal numberwidth=1 +setlocal omnifunc= +setlocal path= +setlocal nopreserveindent +setlocal nopreviewwindow +setlocal quoteescape=\\ +setlocal noreadonly +setlocal norightleft +setlocal rightleftcmd=search +setlocal noscrollbind +setlocal shiftwidth=3 +setlocal noshortname +setlocal nosmartindent +setlocal softtabstop=0 +setlocal nospell +setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ +setlocal spellfile= +setlocal spelllang=en +setlocal statusline= +setlocal suffixesadd= +setlocal swapfile +setlocal synmaxcol=3000 +if &syntax != '' +setlocal syntax= +endif +setlocal tabstop=4 +setlocal tags= +setlocal textwidth=0 +setlocal thesaurus= +setlocal nowinfixheight +setlocal nowinfixwidth +setlocal wrap +setlocal wrapmargin=0 +let s:l = 2 - ((1 * winheight(0) + 11) / 22) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +2 +normal! 0 +wincmd w argglobal +edit tmp/test.fy +setlocal keymap= +setlocal noarabic +setlocal autoindent +setlocal balloonexpr= +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 completefunc= +setlocal nocopyindent +setlocal nocursorcolumn +set cursorline +setlocal cursorline +setlocal define= +setlocal dictionary= +setlocal nodiff +setlocal equalprg= +setlocal errorformat= +setlocal noexpandtab +if &filetype != 'conf' +setlocal filetype=conf +endif +setlocal foldcolumn=0 +setlocal foldenable +setlocal foldexpr=0 +setlocal foldignore=# +setlocal foldlevel=0 +setlocal foldmarker={{{,}}} +set foldmethod=indent +setlocal foldmethod=indent +setlocal foldminlines=1 +setlocal foldnestmax=20 +setlocal foldtext=foldtext() +setlocal formatexpr= +setlocal formatoptions=tcq +setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* +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 keywordprg= +setlocal nolinebreak +setlocal nolisp +setlocal nolist +setlocal makeprg= +setlocal matchpairs=(:),{:},[:] +setlocal modeline +setlocal modifiable +setlocal nrformats=octal,hex +setlocal nonumber +set numberwidth=1 +setlocal numberwidth=1 +setlocal omnifunc= +setlocal path= +setlocal nopreserveindent +setlocal nopreviewwindow +setlocal quoteescape=\\ +setlocal noreadonly +setlocal norightleft +setlocal rightleftcmd=search +setlocal noscrollbind +setlocal shiftwidth=3 +setlocal noshortname +setlocal nosmartindent +setlocal softtabstop=0 +setlocal nospell +setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ +setlocal spellfile= +setlocal spelllang=en +setlocal statusline= +setlocal suffixesadd= +setlocal swapfile +setlocal synmaxcol=3000 +if &syntax != 'conf' +setlocal syntax=conf +endif +setlocal tabstop=4 +setlocal tags= +setlocal textwidth=0 +setlocal thesaurus= +setlocal nowinfixheight +setlocal nowinfixwidth +setlocal wrap +setlocal wrapmargin=0 +let s:l = 26 - ((12 * winheight(0) + 10) / 21) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +26 +normal! 0 +wincmd w +argglobal +edit src/core/interpret.h setlocal keymap= setlocal noarabic setlocal autoindent @@ -88,7 +315,7 @@ if &filetype != 'cpp' setlocal filetype=cpp endif setlocal foldcolumn=0 -setlocal foldenable +setlocal nofoldenable setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 @@ -154,12 +381,130 @@ setlocal nowinfixheight setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 -let s:l = 1 - ((0 * winheight(0) + 17) / 35) +let s:l = 69 - ((36 * winheight(0) + 22) / 44) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -1 -normal! 0 +69 +normal! 012l +wincmd w +3wincmd w +exe '1resize ' . ((&lines * 22 + 23) / 47) +exe 'vert 1resize ' . ((&columns * 71 + 71) / 143) +exe '2resize ' . ((&lines * 21 + 23) / 47) +exe 'vert 2resize ' . ((&columns * 71 + 71) / 143) +exe 'vert 3resize ' . ((&columns * 71 + 71) / 143) +tabnew +set splitbelow splitright +set nosplitbelow +set nosplitright +wincmd t +set winheight=1 winwidth=1 +argglobal +edit /usr/local/share/vim/vim71/doc/windows.txt +setlocal keymap= +setlocal noarabic +setlocal autoindent +setlocal balloonexpr= +setlocal nobinary +setlocal bufhidden= +setlocal nobuflisted +setlocal buftype=help +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 completefunc= +setlocal nocopyindent +setlocal nocursorcolumn +set cursorline +setlocal cursorline +setlocal define= +setlocal dictionary= +setlocal nodiff +setlocal equalprg= +setlocal errorformat= +setlocal noexpandtab +if &filetype != 'help' +setlocal filetype=help +endif +setlocal foldcolumn=0 +setlocal nofoldenable +setlocal foldexpr=0 +setlocal foldignore=# +setlocal foldlevel=0 +setlocal foldmarker={{{,}}} +set foldmethod=indent +setlocal foldmethod=indent +setlocal foldminlines=1 +setlocal foldnestmax=20 +setlocal foldtext=foldtext() +setlocal formatexpr= +setlocal formatoptions=tcq +setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* +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=!-~,^*,^|,^\",192-255 +setlocal keywordprg= +setlocal nolinebreak +setlocal nolisp +setlocal nolist +setlocal makeprg= +setlocal matchpairs=(:),{:},[:] +setlocal modeline +setlocal nomodifiable +setlocal nrformats=octal,hex +setlocal nonumber +set numberwidth=1 +setlocal numberwidth=1 +setlocal omnifunc= +setlocal path= +setlocal nopreserveindent +setlocal nopreviewwindow +setlocal quoteescape=\\ +setlocal readonly +setlocal norightleft +setlocal rightleftcmd=search +setlocal noscrollbind +setlocal shiftwidth=3 +setlocal noshortname +setlocal nosmartindent +setlocal softtabstop=0 +setlocal nospell +setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ +setlocal spellfile= +setlocal spelllang=en +setlocal statusline= +setlocal suffixesadd= +setlocal swapfile +setlocal synmaxcol=3000 +if &syntax != 'help' +setlocal syntax=help +endif +setlocal tabstop=8 +setlocal tags= +setlocal textwidth=78 +setlocal thesaurus= +setlocal nowinfixheight +setlocal nowinfixwidth +setlocal wrap +setlocal wrapmargin=0 +let s:l = 38 - ((6 * winheight(0) + 22) / 45) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +38 +normal! 064l +3wincmd w tabnext 1 if exists('s:wipebuf') silent exe 'bwipe ' . s:wipebuf -- cgit v1.2.3 From 37c687c229f89202e5625bc3d3f9b1c85cb94b51 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 4 Nov 2008 21:29:33 +0000 Subject: array_delete_iterate implemented.. --- Session.vim | 193 ++++++++++++++---------------------------------------------- 1 file changed, 43 insertions(+), 150 deletions(-) (limited to 'Session.vim') diff --git a/Session.vim b/Session.vim index 1358ee6..0800758 100644 --- a/Session.vim +++ b/Session.vim @@ -39,9 +39,9 @@ set showmatch set smartcase set tabstop=4 set tags=./tags,./TAGS,tags,TAGS,./tags,./../tags,./../../tags,./*/tags +set textwidth=80 set title set visualbell -set window=46 let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 let v:this_session=expand(":p") silent only @@ -50,136 +50,35 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' let s:wipebuf = bufnr('%') endif set shortmess=aoO -badd +51 src/core/interpret.h -badd +26 tmp/test.fy +badd +72 src/core/interpret.h +badd +7 tmp/test.fy badd +81 src/defines.h -badd +0 TODO +badd +4 TODO +badd +1005 ./src/core/interpret.c +badd +73 Makefile +badd +67 src/core/symbol.h +badd +115 ./src/core/symbol.c +badd +25 src/core/function.c +badd +173 src/core/token.h +badd +322 ./src/core/token.c +badd +50 src/core/convert.c +badd +65 ./src/data/array.c +badd +1 src/core/array.h +badd +63 src/data/array.h args src/core/interpret.h -edit TODO +edit tmp/test.fy set splitbelow splitright wincmd _ | wincmd | vsplit 1wincmd h -wincmd _ | wincmd | -split -1wincmd k -wincmd w wincmd w set nosplitbelow set nosplitright wincmd t set winheight=1 winwidth=1 -exe '1resize ' . ((&lines * 22 + 23) / 47) exe 'vert 1resize ' . ((&columns * 71 + 71) / 143) -exe '2resize ' . ((&lines * 21 + 23) / 47) exe 'vert 2resize ' . ((&columns * 71 + 71) / 143) -exe 'vert 3resize ' . ((&columns * 71 + 71) / 143) -argglobal -setlocal keymap= -setlocal noarabic -setlocal autoindent -setlocal balloonexpr= -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 completefunc= -setlocal nocopyindent -setlocal nocursorcolumn -set cursorline -setlocal cursorline -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={{{,}}} -set foldmethod=indent -setlocal foldmethod=indent -setlocal foldminlines=1 -setlocal foldnestmax=20 -setlocal foldtext=foldtext() -setlocal formatexpr= -setlocal formatoptions=tcq -setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -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 keywordprg= -setlocal nolinebreak -setlocal nolisp -setlocal nolist -setlocal makeprg= -setlocal matchpairs=(:),{:},[:] -setlocal modeline -setlocal modifiable -setlocal nrformats=octal,hex -setlocal nonumber -set numberwidth=1 -setlocal numberwidth=1 -setlocal omnifunc= -setlocal path= -setlocal nopreserveindent -setlocal nopreviewwindow -setlocal quoteescape=\\ -setlocal noreadonly -setlocal norightleft -setlocal rightleftcmd=search -setlocal noscrollbind -setlocal shiftwidth=3 -setlocal noshortname -setlocal nosmartindent -setlocal softtabstop=0 -setlocal nospell -setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ -setlocal spellfile= -setlocal spelllang=en -setlocal statusline= -setlocal suffixesadd= -setlocal swapfile -setlocal synmaxcol=3000 -if &syntax != '' -setlocal syntax= -endif -setlocal tabstop=4 -setlocal tags= -setlocal textwidth=0 -setlocal thesaurus= -setlocal nowinfixheight -setlocal nowinfixwidth -setlocal wrap -setlocal wrapmargin=0 -let s:l = 2 - ((1 * winheight(0) + 11) / 22) -if s:l < 1 | let s:l = 1 | endif -exe s:l -normal! zt -2 -normal! 0 -wincmd w argglobal -edit tmp/test.fy setlocal keymap= setlocal noarabic setlocal autoindent @@ -276,15 +175,15 @@ setlocal nowinfixheight setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 -let s:l = 26 - ((12 * winheight(0) + 10) / 21) +let s:l = 4 - ((3 * winheight(0) + 22) / 44) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -26 +4 normal! 0 wincmd w argglobal -edit src/core/interpret.h +edit ./src/core/interpret.c setlocal keymap= setlocal noarabic setlocal autoindent @@ -311,8 +210,8 @@ setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab -if &filetype != 'cpp' -setlocal filetype=cpp +if &filetype != 'c' +setlocal filetype=c endif setlocal foldcolumn=0 setlocal nofoldenable @@ -370,46 +269,41 @@ setlocal statusline= setlocal suffixesadd= setlocal swapfile setlocal synmaxcol=3000 -if &syntax != 'cpp' -setlocal syntax=cpp +if &syntax != 'c' +setlocal syntax=c endif setlocal tabstop=4 setlocal tags= -setlocal textwidth=0 +setlocal textwidth=80 setlocal thesaurus= setlocal nowinfixheight setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 -let s:l = 69 - ((36 * winheight(0) + 22) / 44) +let s:l = 947 - ((9 * winheight(0) + 22) / 44) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -69 -normal! 012l +947 +normal! 0 wincmd w -3wincmd w -exe '1resize ' . ((&lines * 22 + 23) / 47) exe 'vert 1resize ' . ((&columns * 71 + 71) / 143) -exe '2resize ' . ((&lines * 21 + 23) / 47) exe 'vert 2resize ' . ((&columns * 71 + 71) / 143) -exe 'vert 3resize ' . ((&columns * 71 + 71) / 143) -tabnew +tabedit ./src/data/array.c set splitbelow splitright set nosplitbelow set nosplitright wincmd t set winheight=1 winwidth=1 argglobal -edit /usr/local/share/vim/vim71/doc/windows.txt setlocal keymap= setlocal noarabic setlocal autoindent setlocal balloonexpr= setlocal nobinary setlocal bufhidden= -setlocal nobuflisted -setlocal buftype=help +setlocal buflisted +setlocal buftype= setlocal cindent setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e setlocal cinoptions= @@ -428,8 +322,8 @@ setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab -if &filetype != 'help' -setlocal filetype=help +if &filetype != 'c' +setlocal filetype=c endif setlocal foldcolumn=0 setlocal nofoldenable @@ -453,7 +347,7 @@ setlocal includeexpr= setlocal indentexpr= setlocal indentkeys=0{,0},:,0#,!^F,o,O,e setlocal noinfercase -setlocal iskeyword=!-~,^*,^|,^\",192-255 +setlocal iskeyword=@,48-57,_,192-255 setlocal keywordprg= setlocal nolinebreak setlocal nolisp @@ -461,7 +355,7 @@ setlocal nolist setlocal makeprg= setlocal matchpairs=(:),{:},[:] setlocal modeline -setlocal nomodifiable +setlocal modifiable setlocal nrformats=octal,hex setlocal nonumber set numberwidth=1 @@ -471,7 +365,7 @@ setlocal path= setlocal nopreserveindent setlocal nopreviewwindow setlocal quoteescape=\\ -setlocal readonly +setlocal noreadonly setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind @@ -487,25 +381,24 @@ setlocal statusline= setlocal suffixesadd= setlocal swapfile setlocal synmaxcol=3000 -if &syntax != 'help' -setlocal syntax=help +if &syntax != 'c' +setlocal syntax=c endif -setlocal tabstop=8 +setlocal tabstop=4 setlocal tags= -setlocal textwidth=78 +setlocal textwidth=80 setlocal thesaurus= setlocal nowinfixheight setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 -let s:l = 38 - ((6 * winheight(0) + 22) / 45) +let s:l = 89 - ((44 * winheight(0) + 22) / 45) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -38 -normal! 064l -3wincmd w -tabnext 1 +89 +normal! 02l +tabnext 2 if exists('s:wipebuf') silent exe 'bwipe ' . s:wipebuf endif -- cgit v1.2.3 From 8dac38590999d4c855cf7d58df5d9df7c6e8b879 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 9 Nov 2008 13:17:16 +0000 Subject: changed version to superalpha --- Session.vim | 258 +++--------------------------------------------------------- 1 file changed, 10 insertions(+), 248 deletions(-) (limited to 'Session.vim') diff --git a/Session.vim b/Session.vim index 0800758..4bcf05a 100644 --- a/Session.vim +++ b/Session.vim @@ -39,7 +39,6 @@ set showmatch set smartcase set tabstop=4 set tags=./tags,./TAGS,tags,TAGS,./tags,./../tags,./../../tags,./*/tags -set textwidth=80 set title set visualbell let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 @@ -50,34 +49,14 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' let s:wipebuf = bufnr('%') endif set shortmess=aoO -badd +72 src/core/interpret.h -badd +7 tmp/test.fy -badd +81 src/defines.h -badd +4 TODO -badd +1005 ./src/core/interpret.c -badd +73 Makefile -badd +67 src/core/symbol.h -badd +115 ./src/core/symbol.c -badd +25 src/core/function.c -badd +173 src/core/token.h -badd +322 ./src/core/token.c -badd +50 src/core/convert.c -badd +65 ./src/data/array.c -badd +1 src/core/array.h -badd +63 src/data/array.h -args src/core/interpret.h -edit tmp/test.fy +badd +0 src/defines.h +args src/defines.h +edit src/defines.h set splitbelow splitright -wincmd _ | wincmd | -vsplit -1wincmd h -wincmd w set nosplitbelow set nosplitright wincmd t set winheight=1 winwidth=1 -exe 'vert 1resize ' . ((&columns * 71 + 71) / 143) -exe 'vert 2resize ' . ((&columns * 71 + 71) / 143) argglobal setlocal keymap= setlocal noarabic @@ -105,8 +84,8 @@ setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab -if &filetype != 'conf' -setlocal filetype=conf +if &filetype != 'cpp' +setlocal filetype=cpp endif setlocal foldcolumn=0 setlocal foldenable @@ -164,8 +143,8 @@ setlocal statusline= setlocal suffixesadd= setlocal swapfile setlocal synmaxcol=3000 -if &syntax != 'conf' -setlocal syntax=conf +if &syntax != 'cpp' +setlocal syntax=cpp endif setlocal tabstop=4 setlocal tags= @@ -175,230 +154,13 @@ setlocal nowinfixheight setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 -let s:l = 4 - ((3 * winheight(0) + 22) / 44) +let s:l = 1 - ((0 * winheight(0) + 23) / 46) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -4 +1 normal! 0 -wincmd w -argglobal -edit ./src/core/interpret.c -setlocal keymap= -setlocal noarabic -setlocal autoindent -setlocal balloonexpr= -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 completefunc= -setlocal nocopyindent -setlocal nocursorcolumn -set cursorline -setlocal cursorline -setlocal define= -setlocal dictionary= -setlocal nodiff -setlocal equalprg= -setlocal errorformat= -setlocal noexpandtab -if &filetype != 'c' -setlocal filetype=c -endif -setlocal foldcolumn=0 -setlocal nofoldenable -setlocal foldexpr=0 -setlocal foldignore=# -setlocal foldlevel=0 -setlocal foldmarker={{{,}}} -set foldmethod=indent -setlocal foldmethod=indent -setlocal foldminlines=1 -setlocal foldnestmax=20 -setlocal foldtext=foldtext() -setlocal formatexpr= -setlocal formatoptions=tcq -setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -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 keywordprg= -setlocal nolinebreak -setlocal nolisp -setlocal nolist -setlocal makeprg= -setlocal matchpairs=(:),{:},[:] -setlocal modeline -setlocal modifiable -setlocal nrformats=octal,hex -setlocal nonumber -set numberwidth=1 -setlocal numberwidth=1 -setlocal omnifunc= -setlocal path= -setlocal nopreserveindent -setlocal nopreviewwindow -setlocal quoteescape=\\ -setlocal noreadonly -setlocal norightleft -setlocal rightleftcmd=search -setlocal noscrollbind -setlocal shiftwidth=3 -setlocal noshortname -setlocal nosmartindent -setlocal softtabstop=0 -setlocal nospell -setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ -setlocal spellfile= -setlocal spelllang=en -setlocal statusline= -setlocal suffixesadd= -setlocal swapfile -setlocal synmaxcol=3000 -if &syntax != 'c' -setlocal syntax=c -endif -setlocal tabstop=4 -setlocal tags= -setlocal textwidth=80 -setlocal thesaurus= -setlocal nowinfixheight -setlocal nowinfixwidth -setlocal wrap -setlocal wrapmargin=0 -let s:l = 947 - ((9 * winheight(0) + 22) / 44) -if s:l < 1 | let s:l = 1 | endif -exe s:l -normal! zt -947 -normal! 0 -wincmd w -exe 'vert 1resize ' . ((&columns * 71 + 71) / 143) -exe 'vert 2resize ' . ((&columns * 71 + 71) / 143) -tabedit ./src/data/array.c -set splitbelow splitright -set nosplitbelow -set nosplitright -wincmd t -set winheight=1 winwidth=1 -argglobal -setlocal keymap= -setlocal noarabic -setlocal autoindent -setlocal balloonexpr= -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 completefunc= -setlocal nocopyindent -setlocal nocursorcolumn -set cursorline -setlocal cursorline -setlocal define= -setlocal dictionary= -setlocal nodiff -setlocal equalprg= -setlocal errorformat= -setlocal noexpandtab -if &filetype != 'c' -setlocal filetype=c -endif -setlocal foldcolumn=0 -setlocal nofoldenable -setlocal foldexpr=0 -setlocal foldignore=# -setlocal foldlevel=0 -setlocal foldmarker={{{,}}} -set foldmethod=indent -setlocal foldmethod=indent -setlocal foldminlines=1 -setlocal foldnestmax=20 -setlocal foldtext=foldtext() -setlocal formatexpr= -setlocal formatoptions=tcq -setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -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 keywordprg= -setlocal nolinebreak -setlocal nolisp -setlocal nolist -setlocal makeprg= -setlocal matchpairs=(:),{:},[:] -setlocal modeline -setlocal modifiable -setlocal nrformats=octal,hex -setlocal nonumber -set numberwidth=1 -setlocal numberwidth=1 -setlocal omnifunc= -setlocal path= -setlocal nopreserveindent -setlocal nopreviewwindow -setlocal quoteescape=\\ -setlocal noreadonly -setlocal norightleft -setlocal rightleftcmd=search -setlocal noscrollbind -setlocal shiftwidth=3 -setlocal noshortname -setlocal nosmartindent -setlocal softtabstop=0 -setlocal nospell -setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ -setlocal spellfile= -setlocal spelllang=en -setlocal statusline= -setlocal suffixesadd= -setlocal swapfile -setlocal synmaxcol=3000 -if &syntax != 'c' -setlocal syntax=c -endif -setlocal tabstop=4 -setlocal tags= -setlocal textwidth=80 -setlocal thesaurus= -setlocal nowinfixheight -setlocal nowinfixwidth -setlocal wrap -setlocal wrapmargin=0 -let s:l = 89 - ((44 * winheight(0) + 22) / 45) -if s:l < 1 | let s:l = 1 | endif -exe s:l -normal! zt -89 -normal! 02l -tabnext 2 +tabnext 1 if exists('s:wipebuf') silent exe 'bwipe ' . s:wipebuf endif -- cgit v1.2.3 From 44c97ead68a274e462460eef33d67e7442c2fa47 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 15 Dec 2008 20:57:29 +0000 Subject: say foo[1] works --- Session.vim | 85 +++++++++++++++---------------------------------------------- 1 file changed, 21 insertions(+), 64 deletions(-) (limited to 'Session.vim') diff --git a/Session.vim b/Session.vim index 4bcf05a..17c1945 100644 --- a/Session.vim +++ b/Session.vim @@ -1,46 +1,5 @@ let SessionLoad = 1 -if &cp | set nocp | endif -map + :next  -map ,e :e =expand("%:p:h") . "/"  -map ,conf :source ~/.vimrc  -map ,v :sp ~/.vimrc  -map ,u :set ff=unix  -map ,t :w!  :make test -map ,r :w!  :make run -map ,m :w!  :make -map ,d :set ff=dos  -map - :previous  -let s:cpo_save=&cpo -set cpo&vim -nmap gx NetrwBrowseX -map t :TlistToggle -nnoremap NetrwBrowseX :call netrw#NetBrowseX(expand(""),0) -iabbr sout System.out.println -iabbr ite \item -iabbr tabul \begin{tabular}{}  \end{tabular} 2ki -iabbr bitem \begin{itemize}  \end{itemize} 2ki \item -iabbr benum \begin{enumerate}  \end{enumerate} 2ki \item -iabbr nsssec \subsubsection{}ba -iabbr nssec \subsection{}ba -iabbr nsec \section{}ba -let &cpo=s:cpo_save -unlet s:cpo_save -set autoindent -set background=dark -set backup -set backupdir=~/.vim/backups -set cindent -set ignorecase -set incsearch -set ruler -set shiftwidth=3 -set showcmd -set showmatch -set smartcase -set tabstop=4 -set tags=./tags,./TAGS,tags,TAGS,./tags,./../tags,./../../tags,./*/tags -set title -set visualbell +if !&cp | set cp | endif let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0 let v:this_session=expand(":p") silent only @@ -49,9 +8,9 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' let s:wipebuf = bufnr('%') endif set shortmess=aoO -badd +0 src/defines.h -args src/defines.h -edit src/defines.h +badd +0 src/main.c +args src/main.c +edit src/main.c set splitbelow splitright set nosplitbelow set nosplitright @@ -60,13 +19,13 @@ set winheight=1 winwidth=1 argglobal setlocal keymap= setlocal noarabic -setlocal autoindent +setlocal noautoindent setlocal balloonexpr= setlocal nobinary setlocal bufhidden= setlocal buflisted setlocal buftype= -setlocal cindent +setlocal nocindent setlocal cinkeys=0{,0},0),:,0#,!^F,o,O,e setlocal cinoptions= setlocal cinwords=if,else,while,do,for,switch @@ -76,16 +35,15 @@ setlocal complete=.,w,b,u,t,i setlocal completefunc= setlocal nocopyindent setlocal nocursorcolumn -set cursorline -setlocal cursorline +setlocal nocursorline setlocal define= setlocal dictionary= setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal noexpandtab -if &filetype != 'cpp' -setlocal filetype=cpp +if &filetype != '' +setlocal filetype= endif setlocal foldcolumn=0 setlocal foldenable @@ -93,13 +51,12 @@ setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 setlocal foldmarker={{{,}}} -set foldmethod=indent -setlocal foldmethod=indent +setlocal foldmethod=manual setlocal foldminlines=1 setlocal foldnestmax=20 setlocal foldtext=foldtext() setlocal formatexpr= -setlocal formatoptions=tcq +setlocal formatoptions=vt setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* setlocal grepprg= setlocal iminsert=2 @@ -109,19 +66,18 @@ setlocal includeexpr= setlocal indentexpr= setlocal indentkeys=0{,0},:,0#,!^F,o,O,e setlocal noinfercase -setlocal iskeyword=@,48-57,_,192-255 +setlocal iskeyword=@,48-57,_ setlocal keywordprg= setlocal nolinebreak setlocal nolisp setlocal nolist setlocal makeprg= setlocal matchpairs=(:),{:},[:] -setlocal modeline +setlocal nomodeline setlocal modifiable setlocal nrformats=octal,hex setlocal nonumber -set numberwidth=1 -setlocal numberwidth=1 +setlocal numberwidth=8 setlocal omnifunc= setlocal path= setlocal nopreserveindent @@ -131,7 +87,7 @@ setlocal noreadonly setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind -setlocal shiftwidth=3 +setlocal shiftwidth=8 setlocal noshortname setlocal nosmartindent setlocal softtabstop=0 @@ -143,10 +99,10 @@ setlocal statusline= setlocal suffixesadd= setlocal swapfile setlocal synmaxcol=3000 -if &syntax != 'cpp' -setlocal syntax=cpp +if &syntax != '' +setlocal syntax= endif -setlocal tabstop=4 +setlocal tabstop=8 setlocal tags= setlocal textwidth=0 setlocal thesaurus= @@ -154,7 +110,8 @@ setlocal nowinfixheight setlocal nowinfixwidth setlocal wrap setlocal wrapmargin=0 -let s:l = 1 - ((0 * winheight(0) + 23) / 46) +silent! normal! zE +let s:l = 1 - ((0 * winheight(0) + 21) / 43) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt @@ -165,7 +122,7 @@ if exists('s:wipebuf') silent exe 'bwipe ' . s:wipebuf endif unlet! s:wipebuf -set winheight=1 winwidth=20 shortmess=filnxtToO +set winheight=1 winwidth=20 shortmess= let s:sx = expand(":p:r")."x.vim" if file_readable(s:sx) exe "source " . s:sx -- cgit v1.2.3