Comments (5)
:ApexRefreshProject isn't working for me either. It's saying E492: Not an editor command: ApexRefreshProject
from vim-force.com.
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.
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 pluginWhat 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.
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.
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)
- Cannot run scripts other than :ApexInitProject before running this script HOT 4
- [Question] Is it possible to check what org am I currently using? HOT 3
- [Question] Is it possible to know remote changes author? HOT 2
- Code Syntax Highlighting for files with extension `*.apxc`? HOT 1
- ApexRefreshProject do not download my new CustomSetting HOT 2
- can not run test for specific method HOT 2
- :ApexExecuteAnonymous: show some error for ~100 milliseconds HOT 3
- ApexTestWithCoverage open buffer with incorrect data HOT 3
- :ApexTest - is it possible to skip `Select Log Type to change`? HOT 1
- Auto-completion doesn't work HOT 7
- incorrect syntax highlight HOT 1
- Unable to refresh projects and files (Unexpected end-of-input) HOT 8
- Commands Fail Silently If Another Process Already Bound to Server Port HOT 3
- sfdx support HOT 1
- Unknown function HTMLIndent HOT 12
- Is there an option for force refresh of file. ApexRefreshFile doesn't support "!" like ApexDeploy! ? HOT 2
- Is ApexTListToggle deprecated? HOT 2
- ApexTestWithCoverage fails with below error. My Deploy/Refresh commands don't have any issues HOT 3
- Autocomplete is slow. HOT 2
- LWC support (in non-sfdx projects) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-force.com.