Giter Club home page Giter Club logo

Comments (5)

westhechiang avatar westhechiang commented on June 7, 2024

:ApexRefreshProject isn't working for me either. It's saying E492: Not an editor command: ApexRefreshProject

from vim-force.com.

neowit avatar neowit commented on June 7, 2024

Hi @westhechiang

If you open a Apex class in vim and run :echo &filetype, what do you see?
If it returns anything other than apexcode then you system did no load vim-force.com plugin

What does :echo &runtimepath return? Can you see the folder where you installed vim-force.com plugin?

from vim-force.com.

westhechiang avatar westhechiang commented on June 7, 2024

Thanks for taking a look at this.

So when I type :echo &filetype, I get: st

When I type :echo &runtimepath, it returns a lot, I've underlined/bolded where i see vim-force.com http://vim-force.com/ installed:

/Users/wesleychiang/.vim,/Users/wesleychiang/.vim/bundle/ctrlp.vim,/Users/wesleychiang/.vim/bundle/emmet-vim,/Users/wesleychiang/.vim/bundle/loremipsum,/Users/wesleychiang/.vim/b
undle/nerdcommenter,/Users/wesleychiang/.vim/bundle/nerdtree,/Users/wesleychiang/.vim/bundle/syntastic,/Users/wesleychiang/.vim/bundle/tabular,/Users/wesleychiang/.vim/bundle/ult
isnips,/Users/wesleychiang/.vim/bundle/vim-airline,/Users/wesleychiang/.vim/bundle/vim-easymotion,/Users/wesleychiang/.vim/bundle/vim-force.com,/Users/wesleychiang/.vim/bundle/vi
m-fugitive,/Users/wesleychiang/.vim/bundle/vim-javascript,/Users/wesleychiang/.vim/bundle/vim-multiple-cursors,/Users/wesleychiang/.vim/bundle/vim-repeat,/Users/wesleychiang/.vim
/bundle/vim-session,/Users/wesleychiang/.vim/bundle/vim-surround,/Users/wesleychiang/.vim/bundle/vimforcebackup,/Users/wesleychiang/.vim/bundle/xml.vim,/usr/local/share/vim/vimfi
les,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/wesleychiang/.vim/bundle/tabular/after,/Users/wesleychiang/.vim/bundle/ultisnips/after,/Users/wesleychia
ng/.vim/after

Wes

On Apr 19, 2015, at 7:13 AM, Andrey Gavrikov [email protected] wrote:

Hi @westhechiang https://github.com/westhechiang
If you open a Apex class in vim and run :echo &filetype, what do you see?
If it returns anything other than apexcode then you system did no load vim-force.com plugin

What does :echo &runtimepath return? Can you see the folder where you installed vim-force.com plugin?


Reply to this email directly or view it on GitHub #42 (comment).

from vim-force.com.

westhechiang avatar westhechiang commented on June 7, 2024

Just got it to to work. I ended up going through your instructions line-by-line and the following lines of code was what fixed it:

if has("unix") let &runtimepath=&runtimepath . ',~/vim/vim-force.com' elseif has("win32") let &runtimepath=&runtimepath . ',c:\Documents and Settings\username\vimfiles\vim-force.com' endif " make sure vim loads apexcode filetype detection runtime ftdetect/vim-force.com.vim

from vim-force.com.

neowit avatar neowit commented on June 7, 2024

Glad you managed to sort this out.

Looking at your runtimepath I'd say you must be using some sort of vim plugin manager.
The line which fixed it for you should not be needed if you used something simple and bulletproof like pathogen.
What plugin manager do you use? I think the problem may be related to the fact that your plugin manager is overly "smart". Is this one of those plugins which supports delayed load?

from vim-force.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.