let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1 argglobal vnoremap [" :exe "normal! gv"|call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW") nnoremap [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW") vnoremap [] m':exe "normal! gv"|call search('^\s*end\(f\%[unction]\|\(export\s\+\)\?def\)\>', "bW") nnoremap [] m':call search('^\s*end\(f\%[unction]\|\(export\s\+\)\?def\)\>', "bW") vnoremap [[ m':exe "normal! gv"|call search('^\s*\(fu\%[nction]\|\(export\s\+\)\?def\)\>', "bW") nnoremap [[ m':call search('^\s*\(fu\%[nction]\|\(export\s\+\)\?def\)\>', "bW") vnoremap ]" :exe "normal! gv"|call search('\%(^\s*".*\n\)\@ ]" :call search('\%(^\s*".*\n\)\@ ][ m':exe "normal! gv"|call search('^\s*end\(f\%[unction]\|\(export\s\+\)\?def\)\>', "W") nnoremap ][ m':call search('^\s*end\(f\%[unction]\|\(export\s\+\)\?def\)\>', "W") vnoremap ]] m':exe "normal! gv"|call search('^\s*\(fu\%[nction]\|\(export\s\+\)\?def\)\>', "W") nnoremap ]] m':call search('^\s*\(fu\%[nction]\|\(export\s\+\)\?def\)\>', "W") setlocal keymap= setlocal noarabic setlocal noautoindent setlocal backupcopy= setlocal balloonexpr= setlocal nobinary setlocal nobreakindent setlocal breakindentopt= setlocal bufhidden= setlocal buflisted setlocal buftype= setlocal nocindent setlocal cinkeys=0{,0},0),0],:,0#,!^F,o,O,e setlocal cinoptions= setlocal cinscopedecls=public,protected,private setlocal cinwords=if,else,while,do,for,switch setlocal colorcolumn= setlocal comments=sO:#\ -,mO:#\ \ ,eO:##,:#\\\ ,:#,sO:\"\ -,mO:\"\ \ ,eO:\"\",:\"\\\ ,:\" setlocal commentstring=\"%s setlocal complete=.,w,b,u,t,i setlocal completefunc= setlocal completeopt= setlocal concealcursor= setlocal conceallevel=0 setlocal nocopyindent setlocal cryptmethod= setlocal nocursorbind setlocal nocursorcolumn setlocal cursorline setlocal cursorlineopt=both setlocal define=\\v^\\s*export\\s*(def|const|var|final) setlocal dictionary= setlocal nodiff setlocal equalprg= setlocal errorformat= setlocal expandtab if &filetype != 'vim' setlocal filetype=vim endif setlocal fillchars= setlocal fixendofline setlocal foldcolumn=0 setlocal foldenable setlocal foldexpr=0 setlocal foldignore=# setlocal foldlevel=0 setlocal foldmarker={{{,}}} setlocal foldmethod=marker setlocal foldminlines=1 setlocal foldnestmax=20 setlocal foldtext=foldtext() setlocal formatexpr= setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* setlocal formatoptions=croql setlocal formatprg= setlocal grepprg= setlocal iminsert=0 setlocal imsearch=-1 setlocal include=\\v^\\s*import\\s*(autoload)? setlocal includeexpr= setlocal indentexpr=g:VimIndent() setlocal indentkeys=0{,0},0),0],!^F,o,O,e,=endif,=enddef,=endfu,=endfor,=endwh,=endtry,=endclass,=endinterface,=endenum,=},=else,=cat,=finall,=END,0\\,0=\"\\\ ,0=#\\\ setlocal noinfercase setlocal iskeyword=@,48-57,_,192-255,# setlocal keywordprg=:help setlocal nolinebreak setlocal nolisp setlocal lispoptions= setlocal lispwords= setlocal nolist setlocal listchars= setlocal makeencoding= setlocal makeprg= setlocal matchpairs=(:),{:},[:] setlocal modeline setlocal modifiable setlocal nrformats=bin,octal,hex setlocal number setlocal numberwidth=4 setlocal omnifunc= setlocal path= setlocal nopreserveindent setlocal nopreviewwindow setlocal quoteescape=\\ setlocal noreadonly setlocal norelativenumber setlocal norightleft setlocal rightleftcmd=search setlocal noscrollbind setlocal scrolloff=-1 setlocal shiftwidth=4 setlocal noshortname setlocal showbreak= setlocal sidescrolloff=-1 setlocal signcolumn=auto setlocal nosmartindent setlocal nosmoothscroll setlocal softtabstop=0 setlocal nospell setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+ setlocal spellfile= setlocal spelllang=en setlocal spelloptions= setlocal statusline=%{lightline#link()}%#LightlineLeft_active_0#%(\ %{lightline#mode()}\ %)%{(&paste)?\"|\":\"\"}%(\ %{&paste?\"PASTE\":\"\"}\ %)%#LightlineLeft_active_0_1#%#LightlineLeft_active_1#%(\ %R\ %)%{(&readonly)&&(1||(&modified||!&modifiable))?\"|\":\"\"}%(\ %t\ %)%{(&modified||!&modifiable)?\"|\":\"\"}%(\ %M\ %)%#LightlineLeft_active_1_2#%#LightlineMiddle_active#%=%#LightlineRight_active_2_3#%#LightlineRight_active_2#%(\ %{&ff}\ %)%{1||1?\"|\":\"\"}%(\ %{&fenc!=#\"\"?&fenc:&enc}\ %)%{1?\"|\":\"\"}%(\ %{&ft!=#\"\"?&ft:\"no\ ft\"}\ %)%#LightlineRight_active_1_2#%#LightlineRight_active_1#%(\ %3p%%\ %)%#LightlineRight_active_0_1#%#LightlineRight_active_0#%(\ %3l:%-2c\ %) setlocal suffixesadd= setlocal swapfile setlocal synmaxcol=3000 if &syntax != 'vim' setlocal syntax=vim endif setlocal tabstop=4 setlocal tagcase= setlocal tagfunc= setlocal tags= setlocal termwinkey= setlocal termwinscroll=10000 setlocal termwinsize= setlocal textwidth=78 setlocal thesaurus= setlocal thesaurusfunc= setlocal noundofile setlocal undolevels=-123456 setlocal varsofttabstop= setlocal vartabstop= setlocal virtualedit= setlocal wincolor= setlocal nowinfixbuf setlocal nowinfixheight setlocal nowinfixwidth setlocal nowrap setlocal wrapmargin=0 97 normal! zo let s:l = 50 - ((10 * winheight(0) + 35) / 71) if s:l < 1 | let s:l = 1 | endif keepjumps exe s:l normal! zt keepjumps 50 normal! 0 let &g:so = s:so_save | let &g:siso = s:siso_save nohlsearch doautoall SessionLoadPost " vim: set ft=vim :