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:
Lawrence Velázquez
2013-01-16 08:17:44 +00:00
parent c9a2350927
commit 7d13af106a
+17 -16
View File
@@ -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"