Source

frawor / test / vimrc

set encoding=utf-8
set guifont=Courier_New:h10:cRUSSIAN
set noswapfile
function WriteFile(...)
    let r=[]
    if filereadable(s:outfile)
        let r+=readfile(s:outfile, 'b')
    endif
    if type(a:1)==type([])
        let r+=a:1
    else
        let r+=a:000
    endif
    call writefile(r, s:outfile, 'b')
    return ""
endfunction
function PurgeFrawor(str)
    if a:str[-1:] is '<'
        return a:str
    endif
    return substitute(a:str,
                \'^Frawor:\(\%(\\.\|[^:]\)\+:\%(\\.\|[^:]\)\+\):.*', '\1', '')
endfunction
command -nargs=1 -bar W call WriteFile(<q-args>)
let s:outfile=fnamemodify(g:outfile, ':p')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.