neowit/vim-force.com — pull request #24 by adegregorio (2014-04-30 19:20:32+00:00)
Title: Add function to initialize a project

I created a function to initialize a project. It asks the user for project name, username, password, security token and server type. Then create the package.xml and properties file and call the apexTooling#refreshProject function. I needed to add an optional parameter to that function to prevent a warning because of a modified file.

I also added this to my .vimrc file:

command! ApexInitProject :call ApexInitProject()

function! ApexInitProject()
:setfiletype apexcode
:call apexTooling#initProject()
endfunction

I'm new with vimscripting so please make sure to check the code and don't hesitate to ask me any modifications. I'll be glad to learn from your feedback.