You've already forked macports-contrib
mirror of
https://github.com/macports/macports-contrib.git
synced 2026-07-12 18:18:45 -07:00
mpvim (ftplugin): Add modeline and reindent.
git-svn-id: https://svn.macports.org/repository/macports/contrib@101655 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
+17
-16
@@ -1,29 +1,30 @@
|
||||
" ============================================================================
|
||||
" vim:fenc=utf-8:et:sw=4:ts=4:sts=4
|
||||
" ======================================================================
|
||||
" Vim filetype plugin for portfile
|
||||
" Maintainer: Maximilian Nickel <mnick@macports.org>
|
||||
" ============================================================================
|
||||
" ======================================================================
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
if !exists("g:did_mpftplugin")
|
||||
function PortfileGetErrors()
|
||||
if !empty(getqflist())
|
||||
exe "copen"
|
||||
end
|
||||
endfunction
|
||||
function PortfileGetErrors()
|
||||
if !empty(getqflist())
|
||||
exe "copen"
|
||||
end
|
||||
endfunction
|
||||
|
||||
function TracPatch(url)
|
||||
let patchfile="$TMPDIR/portfile.patch"
|
||||
let url = substitute(a:url, "/attachment/", "/raw-attachment/", "")
|
||||
let cmd = "!curl --progress-bar -o \"" . patchfile . "\" \"" . url . "\""
|
||||
exe cmd
|
||||
exe "diffpatch " . patchfile
|
||||
endfunction
|
||||
function TracPatch(url)
|
||||
let patchfile="$TMPDIR/portfile.patch"
|
||||
let url = substitute(a:url, "/attachment/", "/raw-attachment/", "")
|
||||
let cmd = "!curl --progress-bar -o \"" . patchfile . "\" \"" . url . "\""
|
||||
exe cmd
|
||||
exe "diffpatch " . patchfile
|
||||
endfunction
|
||||
|
||||
let g:did_mpftplugin = 1
|
||||
let g:did_mpftplugin = 1
|
||||
endif
|
||||
|
||||
au QuickFixCmdPre make exe "cclose"
|
||||
|
||||
Reference in New Issue
Block a user