mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 23:16:53 +00:00
Better way to build title, from content
This commit is contained in:
parent
8f3c56b184
commit
6852f3a08c
@ -236,13 +236,8 @@ EOD;
|
|||||||
$date = 0;
|
$date = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Build title from username and content
|
//Build title from content
|
||||||
$title = $author;
|
$title = mb_substr(strip_tags($post->find('.userContent > p')[0]->innertext), 0, 20).'...';
|
||||||
if(strlen($title) > 24)
|
|
||||||
$title = substr($title, 0, strpos(wordwrap($title, 24), "\n")) . '...';
|
|
||||||
$title = $title . ' | ' . strip_tags($content);
|
|
||||||
if(strlen($title) > 64)
|
|
||||||
$title = substr($title, 0, strpos(wordwrap($title, 64), "\n")) . '...';
|
|
||||||
|
|
||||||
//Build and add final item
|
//Build and add final item
|
||||||
$item['uri'] = self::URI . $post->find('abbr')[0]->parent()->getAttribute('href');
|
$item['uri'] = self::URI . $post->find('abbr')[0]->parent()->getAttribute('href');
|
||||||
|
774
bridges/s1
Normal file
774
bridges/s1
Normal file
@ -0,0 +1,774 @@
|
|||||||
|
let SessionLoad = 1
|
||||||
|
if &cp | set nocp | endif
|
||||||
|
let s:cpo_save=&cpo
|
||||||
|
set cpo&vim
|
||||||
|
inoremap <Plug>ZenCodingAnchorizeSummary :call zencoding#anchorizeURL(1)
a
|
||||||
|
inoremap <Plug>ZenCodingAnchorizeURL :call zencoding#anchorizeURL(0)
a
|
||||||
|
inoremap <Plug>ZenCodingRemoveTag :call zencoding#removeTag()
a
|
||||||
|
inoremap <Plug>ZenCodingSplitJoinTagInsert :call zencoding#splitJoinTag()
|
||||||
|
inoremap <Plug>ZenCodingToggleComment :call zencoding#toggleComment()
a
|
||||||
|
inoremap <Plug>ZenCodingImageSize :call zencoding#imageSize()
a
|
||||||
|
inoremap <Plug>ZenCodingPrev :call zencoding#moveNextPrev(1)
|
||||||
|
inoremap <Plug>ZenCodingNext :call zencoding#moveNextPrev(0)
|
||||||
|
inoremap <Plug>ZenCodingBalanceTagOutwardInsert :call zencoding#balanceTag(-1)
|
||||||
|
inoremap <Plug>ZenCodingBalanceTagInwardInsert :call zencoding#balanceTag(1)
|
||||||
|
inoremap <Plug>ZenCodingExpandWord u:call zencoding#expandAbbr(1,"")
a
|
||||||
|
inoremap <Plug>ZenCodingExpandAbbr u:call zencoding#expandAbbr(0,"")
a
|
||||||
|
nmap :tabprev
|
||||||
|
nmap :tabnext
|
||||||
|
map
o
|
||||||
|
nmap k :tabclose
|
||||||
|
nmap c :tabnew
|
||||||
|
vmap c <Plug>ZenCodingCodePretty
|
||||||
|
nmap A <Plug>ZenCodingAnchorizeSummary
|
||||||
|
nmap a <Plug>ZenCodingAnchorizeURL
|
||||||
|
nmap k <Plug>ZenCodingRemoveTag
|
||||||
|
nmap j <Plug>ZenCodingSplitJoinTagNormal
|
||||||
|
vmap m <Plug>ZenCodingMergeLines
|
||||||
|
nmap / <Plug>ZenCodingToggleComment
|
||||||
|
nmap i <Plug>ZenCodingImageSize
|
||||||
|
nmap N <Plug>ZenCodingPrev
|
||||||
|
nmap n <Plug>ZenCodingNext
|
||||||
|
vmap D <Plug>ZenCodingBalanceTagOutwardVisual
|
||||||
|
nmap D <Plug>ZenCodingBalanceTagOutwardNormal
|
||||||
|
vmap d <Plug>ZenCodingBalanceTagInwardVisual
|
||||||
|
nmap d <Plug>ZenCodingBalanceTagInwardNormal
|
||||||
|
nmap , <Plug>ZenCodingExpandNormal
|
||||||
|
vmap , <Plug>ZenCodingExpandVisual
|
||||||
|
xmap ,s <Plug>Vsurround
|
||||||
|
noremap ,u :e ++enc=utf-8
:set tenc=utf-8
|
||||||
|
noremap ,b :e ++enc=big5
:set tenc=big5
|
||||||
|
nmap ,fu :se ff=unix
|
||||||
|
nmap ,fd :se ff=dos
|
||||||
|
map ,e :e! ~/.vimrc
|
||||||
|
nmap ,s :source ~/.vimrc
|
||||||
|
smap ,s :source ~/.vimrc
|
||||||
|
omap ,s :source ~/.vimrc
|
||||||
|
nmap ,w :w
|
||||||
|
nnoremap ; :
|
||||||
|
map <Shift-CR> O
|
||||||
|
xmap S <Plug>VSurround
|
||||||
|
vmap [% [%m'gv``
|
||||||
|
vmap ]% ]%m'gv``
|
||||||
|
vmap a% [%v]%
|
||||||
|
nmap cs <Plug>Csurround
|
||||||
|
nmap ds <Plug>Dsurround
|
||||||
|
nmap gx <Plug>NetrwBrowseX
|
||||||
|
xmap gS <Plug>VgSurround
|
||||||
|
nmap ySS <Plug>YSsurround
|
||||||
|
nmap ySs <Plug>YSsurround
|
||||||
|
nmap yss <Plug>Yssurround
|
||||||
|
nmap yS <Plug>YSurround
|
||||||
|
nmap ys <Plug>Ysurround
|
||||||
|
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cWORD>"),0)
|
||||||
|
vnoremap <Plug>ZenCodingCodePretty :call zencoding#codePretty()
|
||||||
|
nnoremap <Plug>ZenCodingAnchorizeSummary :call zencoding#anchorizeURL(1)
|
||||||
|
nnoremap <Plug>ZenCodingAnchorizeURL :call zencoding#anchorizeURL(0)
|
||||||
|
nnoremap <Plug>ZenCodingRemoveTag :call zencoding#removeTag()
|
||||||
|
nnoremap <Plug>ZenCodingSplitJoinTagNormal :call zencoding#splitJoinTag()
|
||||||
|
vnoremap <Plug>ZenCodingMergeLines :call zencoding#mergeLines()
|
||||||
|
nnoremap <Plug>ZenCodingToggleComment :call zencoding#toggleComment()
|
||||||
|
nnoremap <Plug>ZenCodingImageSize :call zencoding#imageSize()
|
||||||
|
nnoremap <Plug>ZenCodingPrev :call zencoding#moveNextPrev(1)
|
||||||
|
nnoremap <Plug>ZenCodingNext :call zencoding#moveNextPrev(0)
|
||||||
|
vnoremap <Plug>ZenCodingBalanceTagOutwardVisual :call zencoding#balanceTag(-2)
|
||||||
|
nnoremap <Plug>ZenCodingBalanceTagOutwardNormal :call zencoding#balanceTag(-1)
|
||||||
|
vnoremap <Plug>ZenCodingBalanceTagInwardVisual :call zencoding#balanceTag(2)
|
||||||
|
nnoremap <Plug>ZenCodingBalanceTagInwardNormal :call zencoding#balanceTag(1)
|
||||||
|
nnoremap <Plug>ZenCodingExpandWord :call zencoding#expandAbbr(1,"")
|
||||||
|
nnoremap <Plug>ZenCodingExpandNormal :call zencoding#expandAbbr(3,"")
|
||||||
|
vnoremap <Plug>ZenCodingExpandVisual :call zencoding#expandAbbr(2,"")
|
||||||
|
map <F6> :!exctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
|
||||||
|
nnoremap <F4> :NERDTreeToggle
|
||||||
|
nnoremap <F3> :TlistToggle
|
||||||
|
map <F5> :set spell!
|:echo "Spell check: " . strpart("OffOn", 3 * &spell, 3)
|
||||||
|
noremap <F2> :%s/\s*$//g
:noh
''
|
||||||
|
imap S <Plug>ISurround
|
||||||
|
imap s <Plug>Isurround
|
||||||
|
imap <Plug>Isurround
|
||||||
|
imap A <Plug>ZenCodingAnchorizeSummary
|
||||||
|
imap a <Plug>ZenCodingAnchorizeURL
|
||||||
|
imap k <Plug>ZenCodingRemoveTag
|
||||||
|
imap j <Plug>ZenCodingSplitJoinTagInsert
|
||||||
|
imap / <Plug>ZenCodingToggleComment
|
||||||
|
imap i <Plug>ZenCodingImageSize
|
||||||
|
imap N <Plug>ZenCodingPrev
|
||||||
|
imap n <Plug>ZenCodingNext
|
||||||
|
imap D <Plug>ZenCodingBalanceTagOutwardInsert
|
||||||
|
imap d <Plug>ZenCodingBalanceTagInwardInsert
|
||||||
|
imap ; <Plug>ZenCodingExpandWord
|
||||||
|
imap , <Plug>ZenCodingExpandAbbr
|
||||||
|
nnoremap : :
|
||||||
|
let &cpo=s:cpo_save
|
||||||
|
unlet s:cpo_save
|
||||||
|
set ambiwidth=double
|
||||||
|
set autoindent
|
||||||
|
set backspace=start,indent,eol
|
||||||
|
set backup
|
||||||
|
set backupdir=~/.vim/backup
|
||||||
|
set cindent
|
||||||
|
set directory=~/.vim/tmp
|
||||||
|
set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1
|
||||||
|
set helplang=en
|
||||||
|
set hidden
|
||||||
|
set history=500
|
||||||
|
set hlsearch
|
||||||
|
set ignorecase
|
||||||
|
set incsearch
|
||||||
|
set laststatus=2
|
||||||
|
set listchars=tab:>-,trail:-,eol:$,nbsp:%,extends:>,precedes:<
|
||||||
|
set nomodeline
|
||||||
|
set pastetoggle=<F2>
|
||||||
|
set ruler
|
||||||
|
set rulerformat=%15(%c%V\ %p%%%)
|
||||||
|
set runtimepath=~/.vim,~/.vim/bundle/fugitive,~/.vim/bundle/jedi-vim,~/.vim/bundle/vim-css-color,~/.vim/bundle/vim-css3-syntax,~/.vim/bundle/vim-go,~/.vim/bundle/vim-less,~/.vim/bundle/vim-markdown,~/.vim/bundle/zencoding-vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,~/.vim/bundle/vim-css-color/after,~/.vim/bundle/vim-css3-syntax/after,~/.vim/after
|
||||||
|
set scrolloff=5
|
||||||
|
set shiftwidth=4
|
||||||
|
set showcmd
|
||||||
|
set showmatch
|
||||||
|
set showtabline=2
|
||||||
|
set smartindent
|
||||||
|
set noswapfile
|
||||||
|
set switchbuf=usetab
|
||||||
|
set tabstop=4
|
||||||
|
set termencoding=utf-8
|
||||||
|
set title
|
||||||
|
set whichwrap=b,s,<,>,h,l
|
||||||
|
set wildmenu
|
||||||
|
set nowritebackup
|
||||||
|
let s:so_save = &so | let s:siso_save = &siso | set so=0 siso=0
|
||||||
|
let v:this_session=expand("<sfile>:p")
|
||||||
|
silent only
|
||||||
|
cd ~/public_html/rss-bridge/bridges
|
||||||
|
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
|
||||||
|
let s:wipebuf = bufnr('%')
|
||||||
|
endif
|
||||||
|
set shortmess=aoO
|
||||||
|
badd +0 FacebookBridge.php
|
||||||
|
badd +0 ../lib/contents.php
|
||||||
|
badd +0 ../lib/html.php
|
||||||
|
badd +0 ../lib/Bridge.php
|
||||||
|
badd +0 ../lib/BridgeAbstract.php
|
||||||
|
badd +11 /tmp/title.php
|
||||||
|
badd +15 ../caches/FileCache.php
|
||||||
|
badd +22 ../lib/RssBridge.php
|
||||||
|
badd +0 ../lib/Format.php
|
||||||
|
badd +16 ../formats/AtomFormat.php
|
||||||
|
badd +58 ../lib/FormatAbstract.php
|
||||||
|
badd +0 ../lib/contents_curl.php
|
||||||
|
badd +0 vendor/simplehtmldom/simple_html_dom.php
|
||||||
|
badd +0 ../vendor/simplehtmldom/simple_html_dom.php
|
||||||
|
argglobal
|
||||||
|
silent! argdel *
|
||||||
|
argadd FacebookBridge.php
|
||||||
|
edit FacebookBridge.php
|
||||||
|
set splitbelow splitright
|
||||||
|
set nosplitbelow
|
||||||
|
set nosplitright
|
||||||
|
wincmd t
|
||||||
|
set winheight=1 winwidth=1
|
||||||
|
argglobal
|
||||||
|
onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
setlocal noautoindent
|
||||||
|
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 colorcolumn=
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal cryptmethod=
|
||||||
|
setlocal nocursorbind
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal noexpandtab
|
||||||
|
if &filetype != 'php'
|
||||||
|
setlocal filetype=php
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
set foldmethod=syntax
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=qrowcb
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=0
|
||||||
|
setlocal imsearch=0
|
||||||
|
setlocal include=\\(require\\|include\\)\\(_once\\)\\?
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=GetPhpHtmlIndent(v:lnum)
|
||||||
|
setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/,<>>
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255,-
|
||||||
|
setlocal keywordprg=
|
||||||
|
set linebreak
|
||||||
|
setlocal linebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal lispwords=
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:],<:>
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=phpcomplete#CompletePHP
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norelativenumber
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal noswapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'php'
|
||||||
|
setlocal syntax=php
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=~/public_html/rss-bridge/.git/php.tags,~/public_html/rss-bridge/.git/tags,./tags,tags
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal noundofile
|
||||||
|
setlocal undolevels=-123456
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
3
|
||||||
|
normal! zo
|
||||||
|
20
|
||||||
|
normal! zo
|
||||||
|
226
|
||||||
|
normal! zo
|
||||||
|
let s:l = 109 - ((31 * winheight(0) + 18) / 37)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
109
|
||||||
|
normal! 0
|
||||||
|
tabedit ../lib/Bridge.php
|
||||||
|
set splitbelow splitright
|
||||||
|
set nosplitbelow
|
||||||
|
set nosplitright
|
||||||
|
wincmd t
|
||||||
|
set winheight=1 winwidth=1
|
||||||
|
argglobal
|
||||||
|
onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
setlocal noautoindent
|
||||||
|
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 colorcolumn=
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal cryptmethod=
|
||||||
|
setlocal nocursorbind
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal noexpandtab
|
||||||
|
if &filetype != 'php'
|
||||||
|
setlocal filetype=php
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
set foldmethod=syntax
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=qrowcb
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=0
|
||||||
|
setlocal imsearch=0
|
||||||
|
setlocal include=\\(require\\|include\\)\\(_once\\)\\?
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=GetPhpHtmlIndent(v:lnum)
|
||||||
|
setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/,<>>
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255,-
|
||||||
|
setlocal keywordprg=
|
||||||
|
set linebreak
|
||||||
|
setlocal linebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal lispwords=
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:],<:>
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=phpcomplete#CompletePHP
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norelativenumber
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal noswapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'php'
|
||||||
|
setlocal syntax=php
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=~/public_html/rss-bridge/.git/php.tags,~/public_html/rss-bridge/.git/tags,./tags,tags
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal noundofile
|
||||||
|
setlocal undolevels=-123456
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
3
|
||||||
|
normal! zo
|
||||||
|
let s:l = 52 - ((51 * winheight(0) + 18) / 37)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
52
|
||||||
|
normal! 0
|
||||||
|
tabedit ../lib/contents.php
|
||||||
|
set splitbelow splitright
|
||||||
|
set nosplitbelow
|
||||||
|
set nosplitright
|
||||||
|
wincmd t
|
||||||
|
set winheight=1 winwidth=1
|
||||||
|
argglobal
|
||||||
|
onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
setlocal noautoindent
|
||||||
|
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 colorcolumn=
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal cryptmethod=
|
||||||
|
setlocal nocursorbind
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal noexpandtab
|
||||||
|
if &filetype != 'php'
|
||||||
|
setlocal filetype=php
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
set foldmethod=syntax
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=qrowcb
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=0
|
||||||
|
setlocal imsearch=0
|
||||||
|
setlocal include=\\(require\\|include\\)\\(_once\\)\\?
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=GetPhpHtmlIndent(v:lnum)
|
||||||
|
setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/,<>>
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255,-
|
||||||
|
setlocal keywordprg=
|
||||||
|
set linebreak
|
||||||
|
setlocal linebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal lispwords=
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:],<:>
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=phpcomplete#CompletePHP
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norelativenumber
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal noswapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'php'
|
||||||
|
setlocal syntax=php
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=~/public_html/rss-bridge/.git/php.tags,~/public_html/rss-bridge/.git/tags,./tags,tags
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal noundofile
|
||||||
|
setlocal undolevels=-123456
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
2
|
||||||
|
normal! zo
|
||||||
|
120
|
||||||
|
normal! zo
|
||||||
|
66
|
||||||
|
normal! zo
|
||||||
|
94
|
||||||
|
normal! zo
|
||||||
|
let s:l = 35 - ((9 * winheight(0) + 18) / 37)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
35
|
||||||
|
normal! 05|
|
||||||
|
tabedit ../lib/contents_curl.php
|
||||||
|
set splitbelow splitright
|
||||||
|
set nosplitbelow
|
||||||
|
set nosplitright
|
||||||
|
wincmd t
|
||||||
|
set winheight=1 winwidth=1
|
||||||
|
argglobal
|
||||||
|
onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
setlocal noautoindent
|
||||||
|
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 colorcolumn=
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal cryptmethod=
|
||||||
|
setlocal nocursorbind
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal noexpandtab
|
||||||
|
if &filetype != 'php'
|
||||||
|
setlocal filetype=php
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
set foldmethod=syntax
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=qrowcb
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=0
|
||||||
|
setlocal imsearch=0
|
||||||
|
setlocal include=\\(require\\|include\\)\\(_once\\)\\?
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=GetPhpHtmlIndent(v:lnum)
|
||||||
|
setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/,<>>
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255,-
|
||||||
|
setlocal keywordprg=
|
||||||
|
set linebreak
|
||||||
|
setlocal linebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal lispwords=
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:],<:>
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=phpcomplete#CompletePHP
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norelativenumber
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal noswapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'php'
|
||||||
|
setlocal syntax=php
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=~/public_html/rss-bridge/.git/php.tags,~/public_html/rss-bridge/.git/tags,./tags,tags
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal noundofile
|
||||||
|
setlocal undolevels=-123456
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
2
|
||||||
|
normal! zo
|
||||||
|
44
|
||||||
|
normal! zo
|
||||||
|
let s:l = 8 - ((7 * winheight(0) + 18) / 37)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
8
|
||||||
|
normal! 05|
|
||||||
|
tabedit ../vendor/simplehtmldom/simple_html_dom.php
|
||||||
|
set splitbelow splitright
|
||||||
|
set nosplitbelow
|
||||||
|
set nosplitright
|
||||||
|
wincmd t
|
||||||
|
set winheight=1 winwidth=1
|
||||||
|
argglobal
|
||||||
|
onoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
nnoremap <buffer> <silent> [[ ?\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)?
:nohls
|
||||||
|
onoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
nnoremap <buffer> <silent> ]] /\(.*\%#\)\@!\_^\s*\zs\(\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function\|\(abstract\s\+\|final\s\+\)*class\|interface\)/
:nohls
|
||||||
|
setlocal noautoindent
|
||||||
|
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 colorcolumn=
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||||
|
setlocal commentstring=/*%s*/
|
||||||
|
setlocal complete=.,w,b,u,t,i
|
||||||
|
setlocal completefunc=
|
||||||
|
setlocal nocopyindent
|
||||||
|
setlocal cryptmethod=
|
||||||
|
setlocal nocursorbind
|
||||||
|
setlocal nocursorcolumn
|
||||||
|
setlocal nocursorline
|
||||||
|
setlocal define=
|
||||||
|
setlocal dictionary=
|
||||||
|
setlocal nodiff
|
||||||
|
setlocal equalprg=
|
||||||
|
setlocal errorformat=
|
||||||
|
setlocal noexpandtab
|
||||||
|
if &filetype != 'php'
|
||||||
|
setlocal filetype=php
|
||||||
|
endif
|
||||||
|
setlocal foldcolumn=0
|
||||||
|
setlocal foldenable
|
||||||
|
setlocal foldexpr=0
|
||||||
|
setlocal foldignore=#
|
||||||
|
setlocal foldlevel=0
|
||||||
|
setlocal foldmarker={{{,}}}
|
||||||
|
set foldmethod=syntax
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
setlocal foldminlines=1
|
||||||
|
setlocal foldnestmax=20
|
||||||
|
setlocal foldtext=foldtext()
|
||||||
|
setlocal formatexpr=
|
||||||
|
setlocal formatoptions=qrowcb
|
||||||
|
setlocal formatlistpat=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s*
|
||||||
|
setlocal grepprg=
|
||||||
|
setlocal iminsert=0
|
||||||
|
setlocal imsearch=0
|
||||||
|
setlocal include=\\(require\\|include\\)\\(_once\\)\\?
|
||||||
|
setlocal includeexpr=
|
||||||
|
setlocal indentexpr=GetPhpHtmlIndent(v:lnum)
|
||||||
|
setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/,<>>
|
||||||
|
setlocal noinfercase
|
||||||
|
setlocal iskeyword=@,48-57,_,192-255,-
|
||||||
|
setlocal keywordprg=
|
||||||
|
set linebreak
|
||||||
|
setlocal linebreak
|
||||||
|
setlocal nolisp
|
||||||
|
setlocal lispwords=
|
||||||
|
setlocal nolist
|
||||||
|
setlocal makeprg=
|
||||||
|
setlocal matchpairs=(:),{:},[:],<:>
|
||||||
|
setlocal nomodeline
|
||||||
|
setlocal modifiable
|
||||||
|
setlocal nrformats=octal,hex
|
||||||
|
set number
|
||||||
|
setlocal number
|
||||||
|
setlocal numberwidth=4
|
||||||
|
setlocal omnifunc=phpcomplete#CompletePHP
|
||||||
|
setlocal path=
|
||||||
|
setlocal nopreserveindent
|
||||||
|
setlocal nopreviewwindow
|
||||||
|
setlocal quoteescape=\\
|
||||||
|
setlocal noreadonly
|
||||||
|
setlocal norelativenumber
|
||||||
|
setlocal noscrollbind
|
||||||
|
setlocal shiftwidth=4
|
||||||
|
setlocal noshortname
|
||||||
|
setlocal nosmartindent
|
||||||
|
setlocal softtabstop=0
|
||||||
|
setlocal nospell
|
||||||
|
setlocal spellcapcheck=[.?!]\\_[\\])'\"\ \ ]\\+
|
||||||
|
setlocal spellfile=
|
||||||
|
setlocal spelllang=en
|
||||||
|
setlocal statusline=
|
||||||
|
setlocal suffixesadd=
|
||||||
|
setlocal noswapfile
|
||||||
|
setlocal synmaxcol=3000
|
||||||
|
if &syntax != 'php'
|
||||||
|
setlocal syntax=php
|
||||||
|
endif
|
||||||
|
setlocal tabstop=4
|
||||||
|
setlocal tags=~/public_html/rss-bridge/.git/php.tags,~/public_html/rss-bridge/.git/tags,./tags,tags
|
||||||
|
setlocal textwidth=0
|
||||||
|
setlocal thesaurus=
|
||||||
|
setlocal noundofile
|
||||||
|
setlocal undolevels=-123456
|
||||||
|
setlocal nowinfixheight
|
||||||
|
setlocal nowinfixwidth
|
||||||
|
setlocal wrap
|
||||||
|
setlocal wrapmargin=0
|
||||||
|
89
|
||||||
|
normal! zo
|
||||||
|
let s:l = 1742 - ((1653 * winheight(0) + 18) / 37)
|
||||||
|
if s:l < 1 | let s:l = 1 | endif
|
||||||
|
exe s:l
|
||||||
|
normal! zt
|
||||||
|
1742
|
||||||
|
normal! 0
|
||||||
|
tabnext 4
|
||||||
|
if exists('s:wipebuf')
|
||||||
|
silent exe 'bwipe ' . s:wipebuf
|
||||||
|
endif
|
||||||
|
unlet! s:wipebuf
|
||||||
|
set winheight=1 winwidth=20 shortmess=filnxtToO
|
||||||
|
let s:sx = expand("<sfile>:p:r")."x.vim"
|
||||||
|
if file_readable(s:sx)
|
||||||
|
exe "source " . fnameescape(s:sx)
|
||||||
|
endif
|
||||||
|
let &so = s:so_save | let &siso = s:siso_save
|
||||||
|
doautoall SessionLoadPost
|
||||||
|
unlet SessionLoad
|
||||||
|
" vim: set ft=vim :
|
Loading…
Reference in New Issue
Block a user