diff --git a/scripts/if2spdl/Session.vim b/scripts/if2spdl/Session.vim index 51c0cb9..626b1ec 100644 --- a/scripts/if2spdl/Session.vim +++ b/scripts/if2spdl/Session.vim @@ -17,6 +17,7 @@ let &cpo=s:cpo_save unlet s:cpo_save set autoindent set autowrite +set background=dark set backspace=2 set diffopt=filler,iwhite set fileencodings=ucs-bom,utf-8,default,latin1 @@ -30,7 +31,7 @@ set incsearch set nojoinspaces set laststatus=2 set listchars=tab:>.,trail:$ -set makeprg=./Ifparser.py +set makeprg=./if2spdl.py set printencoding=ascii set ruler set scrolloff=2 @@ -50,24 +51,35 @@ if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == '' let s:wipebuf = bufnr('%') endif set shortmess=aoO -badd +7 If.py -badd +2 Term.py -badd +11 if2spdl.py +badd +244 If.py +badd +111 Term.py +badd +10 if2spdl.py badd +11 parser.py -badd +0 Ifparser.py +badd +295 Ifparser.py +badd +13 NSPK_LOWE.if +badd +9 Spdlgenerator.py +badd +13 Spdl.py +badd +29 misc.py args If.py -edit Ifparser.py +edit NSPK_LOWE.if 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 'vert 1resize ' . ((&columns * 79 + 79) / 158) +exe '1resize ' . ((&lines * 28 + 28) / 57) +exe 'vert 1resize ' . ((&columns * 78 + 79) / 158) +exe '2resize ' . ((&lines * 26 + 28) / 57) exe 'vert 2resize ' . ((&columns * 78 + 79) / 158) +exe 'vert 3resize ' . ((&columns * 79 + 79) / 158) argglobal setlocal noarabic setlocal autoindent @@ -91,6 +103,105 @@ 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={{{,}}} +setlocal foldmethod=manual +setlocal foldminlines=1 +setlocal foldnestmax=20 +setlocal foldtext=foldtext() +setlocal formatoptions=cqrt +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 keymap= +setlocal keywordprg= +setlocal nolinebreak +setlocal nolisp +setlocal nolist +setlocal makeprg= +setlocal matchpairs=(:),{:},[:] +setlocal modeline +setlocal modifiable +setlocal nrformats=octal,hex +setlocal nonumber +setlocal numberwidth=4 +setlocal omnifunc= +setlocal path= +setlocal nopreserveindent +setlocal nopreviewwindow +setlocal quoteescape=\\ +setlocal noreadonly +setlocal norightleft +setlocal rightleftcmd=search +setlocal noscrollbind +setlocal shiftwidth=8 +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=8 +setlocal tags= +setlocal textwidth=72 +setlocal thesaurus= +setlocal nowinfixheight +setlocal wrap +setlocal wrapmargin=0 +silent! normal! zE +let s:l = 22 - ((16 * winheight(0) + 14) / 28) +if s:l < 1 | let s:l = 1 | endif +exe s:l +normal! zt +22 +normal! 01l +wincmd w +argglobal +edit Spdl.py +setlocal noarabic +setlocal autoindent +setlocal autoread +setlocal nobinary +setlocal bufhidden= +setlocal buflisted +setlocal buftype= +setlocal nocindent +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 define= +setlocal dictionary= +setlocal nodiff +setlocal equalprg= +setlocal errorformat= +setlocal noexpandtab if &filetype != 'python' setlocal filetype=python endif @@ -159,12 +270,12 @@ setlocal nowinfixheight setlocal wrap setlocal wrapmargin=0 silent! normal! zE -let s:l = 207 - ((32 * winheight(0) + 27) / 55) +let s:l = 23 - ((9 * winheight(0) + 13) / 26) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -207 -normal! 0 +23 +normal! 04l wincmd w argglobal edit If.py @@ -258,20 +369,23 @@ setlocal nowinfixheight setlocal wrap setlocal wrapmargin=0 silent! normal! zE -let s:l = 56 - ((48 * winheight(0) + 27) / 55) +let s:l = 102 - ((48 * winheight(0) + 27) / 55) if s:l < 1 | let s:l = 1 | endif exe s:l normal! zt -56 -normal! 025l +102 +normal! 01l wincmd w 2wincmd w if exists('s:wipebuf') exe 'bwipe ' . s:wipebuf endif unlet! s:wipebuf -exe 'vert 1resize ' . ((&columns * 79 + 79) / 158) +exe '1resize ' . ((&lines * 28 + 28) / 57) +exe 'vert 1resize ' . ((&columns * 78 + 79) / 158) +exe '2resize ' . ((&lines * 26 + 28) / 57) exe 'vert 2resize ' . ((&columns * 78 + 79) / 158) +exe 'vert 3resize ' . ((&columns * 79 + 79) / 158) set winheight=1 winwidth=20 shortmess=at let s:sx = expand(":p:r")."x.vim" if file_readable(s:sx)