Added webdev to eclim
This commit is contained in:
84
vim/bundle/eclim/ftplugin/eclipse_buildpath.vim
Normal file
84
vim/bundle/eclim/ftplugin/eclipse_buildpath.vim
Normal file
@@ -0,0 +1,84 @@
|
||||
" Author: Eric Van Dewoestine
|
||||
"
|
||||
" Description: {{{
|
||||
" see http://eclim.org/vim/php/buildpath.html
|
||||
"
|
||||
" License:
|
||||
"
|
||||
" Copyright (C) 2005 - 2013 Eric Van Dewoestine
|
||||
"
|
||||
" This program is free software: you can redistribute it and/or modify
|
||||
" it under the terms of the GNU General Public License as published by
|
||||
" the Free Software Foundation, either version 3 of the License, or
|
||||
" (at your option) any later version.
|
||||
"
|
||||
" This program is distributed in the hope that it will be useful,
|
||||
" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
" GNU General Public License for more details.
|
||||
"
|
||||
" You should have received a copy of the GNU General Public License
|
||||
" along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
" }}}
|
||||
|
||||
" Script Variables {{{
|
||||
let s:entry_src =
|
||||
\ "\t<buildpathentry kind=\"src\" path=\"<arg>\"/>"
|
||||
let s:entry_lib =
|
||||
\ "\t<buildpathentry external=\"true\" kind=\"lib\" path=\"<arg>\"/>"
|
||||
let s:entry_project =
|
||||
\ "\t<buildpathentry combineaccessrules=\"false\" kind=\"prj\" path=\"<arg>\"/>"
|
||||
let s:entry_var =
|
||||
\ "\t<buildpathentry kind=\"var\" path=\"<arg>\"/>"
|
||||
" }}}
|
||||
|
||||
" load any xml related functionality
|
||||
runtime! ftplugin/xml.vim
|
||||
runtime! indent/xml.vim
|
||||
|
||||
augroup eclim_xml
|
||||
autocmd! BufWritePost <buffer>
|
||||
autocmd BufWritePost <buffer> call eclim#project#util#ProjectUpdate()
|
||||
augroup END
|
||||
|
||||
let b:EclimRefreshDisabled = 1
|
||||
|
||||
" Command Declarations {{{
|
||||
if !exists(":NewSrcEntry")
|
||||
command -nargs=+ -complete=customlist,eclim#project#util#CommandCompleteProjectRelative -buffer
|
||||
\ NewSrcEntry :call eclim#dltk#buildpath#NewBuildPathEntry
|
||||
\ (substitute('<args>', '\', '/', 'g') , s:entry_src)
|
||||
endif
|
||||
if !exists(":NewLibEntry")
|
||||
command -nargs=+ -complete=dir -buffer
|
||||
\ NewLibEntry :call eclim#dltk#buildpath#NewBuildPathEntry
|
||||
\ (substitute('<args>', '\', '/', 'g') , s:entry_lib)
|
||||
endif
|
||||
if !exists(":NewProjectEntry")
|
||||
command -nargs=+ -complete=customlist,eclim#dltk#util#CommandCompleteProject -buffer
|
||||
\ NewProjectEntry :call eclim#dltk#buildpath#NewBuildPathEntry('<args>', s:entry_project)
|
||||
endif
|
||||
|
||||
" Disabled until org.eclipse.dltk.internal.core.BuildpathEntry.elementDecode
|
||||
" starts supporting kind="var"
|
||||
"if !exists(":NewVarEntry")
|
||||
" command -nargs=+ -complete=customlist,eclim#dltk#buildpath#CommandCompleteVarPath -buffer
|
||||
" \ NewVarEntry
|
||||
" \ :call eclim#dltk#buildpath#NewBuildPathEntry('<args>', s:entry_var)
|
||||
"endif
|
||||
"if !exists(":VariableList")
|
||||
" command -buffer VariableList :call eclim#dltk#buildpath#VariableList()
|
||||
"endif
|
||||
"if !exists(":VariableCreate")
|
||||
" command -nargs=+ -buffer -complete=customlist,eclim#dltk#buildpath#CommandCompleteVarAndDir
|
||||
" \ VariableCreate :call eclim#dltk#buildpath#VariableCreate(<f-args>)
|
||||
"endif
|
||||
"if !exists(":VariableDelete")
|
||||
" command -nargs=1 -buffer -complete=customlist,eclim#dltk#buildpath#CommandCompleteVar
|
||||
" \ VariableDelete :call eclim#dltk#buildpath#VariableDelete('<args>')
|
||||
"endif
|
||||
|
||||
" }}}
|
||||
|
||||
" vim:ft=vim:fdm=marker
|
||||
61
vim/bundle/eclim/ftplugin/php.vim
Normal file
61
vim/bundle/eclim/ftplugin/php.vim
Normal file
@@ -0,0 +1,61 @@
|
||||
" Author: Eric Van Dewoestine
|
||||
"
|
||||
" License: {{{
|
||||
"
|
||||
" Copyright (C) 2005 - 2014 Eric Van Dewoestine
|
||||
"
|
||||
" This program is free software: you can redistribute it and/or modify
|
||||
" it under the terms of the GNU General Public License as published by
|
||||
" the Free Software Foundation, either version 3 of the License, or
|
||||
" (at your option) any later version.
|
||||
"
|
||||
" This program is distributed in the hope that it will be useful,
|
||||
" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
" GNU General Public License for more details.
|
||||
"
|
||||
" You should have received a copy of the GNU General Public License
|
||||
" along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"
|
||||
" }}}
|
||||
|
||||
" Options {{{
|
||||
|
||||
exec 'setlocal ' . g:EclimCompletionMethod . '=eclim#php#complete#CodeComplete'
|
||||
|
||||
call eclim#lang#DisableSyntasticIfValidationIsEnabled('php')
|
||||
|
||||
" }}}
|
||||
|
||||
" Autocmds {{{
|
||||
|
||||
augroup eclim_html_validate
|
||||
autocmd!
|
||||
augroup END
|
||||
|
||||
augroup eclim_php
|
||||
autocmd! BufWritePost <buffer>
|
||||
autocmd BufWritePost <buffer> call eclim#php#util#UpdateSrcFile(1)
|
||||
augroup END
|
||||
|
||||
" }}}
|
||||
|
||||
" Command Declarations {{{
|
||||
|
||||
command! -nargs=0 -buffer Validate :call eclim#php#util#UpdateSrcFile(0)
|
||||
|
||||
if !exists(":PhpSearch")
|
||||
command -buffer -nargs=*
|
||||
\ -complete=customlist,eclim#php#search#CommandCompleteSearch
|
||||
\ PhpSearch :call eclim#php#search#Search('<args>')
|
||||
endif
|
||||
|
||||
if !exists(":PhpSearchContext")
|
||||
command -buffer -nargs=*
|
||||
\ -complete=customlist,eclim#php#search#CommandCompleteSearchContext
|
||||
\ PhpSearchContext :call eclim#php#search#SearchContext('<args>')
|
||||
endif
|
||||
|
||||
" }}}
|
||||
|
||||
" vim:ft=vim:fdm=marker
|
||||
Reference in New Issue
Block a user