Vim plugin for magento - magento

Is there any vim plugin available for auto suggestion of magento classes,functions? or is there any workaround available to achieve this?

I'd take a look at ctags. I haven't used it extensively myself, but I know that vi/vim was one of the earliest programs you leverage ctags support for code navigation. My guess would be there's a way to use your tags file as a source for VIm autocomplete.

Related

Can VisualStudio autocomplete be like Eclipse's one

I am starting to write in C#. I use VisualStudio, but I don't like the autocomplete. I was mainly writing in Android and I really like the autocomplete of AndroidStudio and Eclipse. It there a way to make the VisualStudio's one the same? I don't like that when I have a one method which can take a different set of arguments (overloaded) I have to click up and down arrow, to see the parameters. Can it just show me a scroll list like AndroidStudio and Eclipse? And is there a way when autocomplete some method to put automatically the braces and semicolon- "();"? I am really new to VisualStudio and I don't know can I modified it in this way or I should have to use to it. I just don't find anything about this.
Thanks in advance.
I suggest to have a look at ReSharper plugin for VS. It is a complete package for enhancing Productivity, but it is not a free plugin. It also have some features you mentioned. also you can check this videos:
Resharper features video list
Here is the website:
Resharper website

Disable "intelligent" anchor look up of link dialog

When adding a link using the default link-plugin, I want to be able to write "what-ever", e.g. #my-id. The link-plugin, doesn't allow this. It extracts all possible "anchors" in the current text being edited, but in my case, it is just part of a bigger "page".
Any ideas on configuration options, or do I need to write a custom plugin?
There are numerous suggestions around on how-to configure the existing plugins and remove UI-elements etc. It does not work in current version (4.4.3), but thankfully you can build your own plugin and remove the existing one, quite easily. There's a good explanation of a similar plugin in the documentation: http://docs.ckeditor.com
I also wrote a bit about this here: http://danielwertheim.se/2014/08/15/ckeditor-the-link-plugin-is-painfully-clever/

Better autocomplete in VIM

All,
I have been working with vim for some time now, and love everything about it - there is only one thing I really miss from IDEs like RubyMine, and that is advanced autocompletion.
For reference, here is my standard VIM setup: https://github.com/wrwright/.vim
I have tried ctags with omnicomplete + supertab, and the one major element I miss is the ability to bring up a context sensitive list of attributes/constants/methods. For example, as I learn RubyMotion, I'd love to have some help remembering iOS SDK constants/attributes/methods, but my VIM autocomplete stops with suggesting class names..or if it does suggest methods/attributes, it lists a ton of methods/attributes that don't even apply to the class I'm working with.
I'd like to (simple example) be able to type UIColor.bl and have it autocomplete with UIColor.blueColor (or suggest if there are multiple options that start with "bl" that are properties of UIColor.
RubyMine does this very well, and if I can get VIM to be similarly smart with autocomplete it would be heavenly (and a great boon while learning RubyMotion/iOS Development.
I have also tried SnipMate (and even a RubyMotion tailored variation at https://github.com/rcyrus/snipmate-snippets-rubymotion), but that doesn't seem to offer the features I'm looking for either.
Relatively satisfied with stock Vim's omnicomplete + vim-ruby and vim-rails having completion abilities on par with NetBeans but with all the bells&whistles of Vim and much lower resource requirements, of course.
From my .vimrc concerning completion options :
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
One thing that I have had a bit of luck with Rubymotion is YouCompleteMe and enabling tag Support. you will need a lot of ram(YCM uses ~2GB when indexing a large tag file) because the tags that rubymotion uses are about 40k tags.
The downside is that the rubymotion people don't seem to want to review pull requests and provide any feedback so I am not sure if they will add the needed things to the rake task that creates the tag files for ycm to work correctly out of the box.
To get it to work you need to set the tags files correct
set tags=./tags;,tags;
and then you need to setup ycm to complete off tags.
let g:ycm_collect_identifiers_from_tags_files = 1
you need to make the ctags file compatible with ycm as well. This pull request does that. You need to add a language field to the ctags creation and then change bridgesupport to ruby.
pull request for that
after that you need to run rake ctags in the root of your project.
If you don't want to modify the project.rb file you could probably create your own rake task that does pretty much the same thing.
Yes, Vim is an awesome... text editor.
As such, it can't be expected to match any IDE's "code awareness". Furthermore, it completely relies on the community for providing more than default support for a given language. If google or the rubymotion site didn't help you to find a serious "autocompletion" solution I doubt you'll find it here.
The process explained in the blog post below sounds ok, if not very precise on the vim configuration front.
http://rayhightower.com/blog/2013/02/12/automatic-ctags-with-rubymotion-and-vim/

Ruby On Rails and VIM

What is the best IDE plugin for VIM?
I'm looking for a VIM plugin that
is easy to use and install
supports auto-completion
supports jumping to method/class definitions
does not change the files of my Rails project (I'm co-working in a software project where not everybody uses VIM)
should be compatible with the latest Rails versions
Rails.vim is the best for now
https://github.com/tpope/vim-rails
http://www.vim.org/scripts/script.php?script_id=1567
There's a few auto-completion-ish plug-ins around for vim, but probably the most straightforward one is just the built-in "keyword completion". It does not know any particular language, but if you use, eg, set complete=.,b,k, it will scan the current file (.), other loaded files (b), and any files set as dictionaries (use set dictionary=/some/file) for matches. Add that stuff to your .vimrc. To use completion, type a couple letters and hit ctrl-p in INSERT mode, you'll get a pop-up of cantidates. It's unobtrusive and easy to use. For more info on complete try :help E535.
WRT to class/method indexing, there's the taglist plugin:
http://vim-taglist.sourceforge.net/feature.html
Which will index a bunch of languages including ruby (nice if you are are working in js at the same time, etc). It will take about 30 seconds to figure out. Slightly more awkward to use in the pure ncurses version (ie, not gvim) if you can't use the mouse to switch windows.
Here is an info about how to use VIM as ror ide.
http://biodegradablegeek.com/2007/12/using-vim-as-a-complete-ruby-on-rails-ide/
Moreover following plugins can be useful.
NERDTree
FuzzyFinder
snipMate

web development application - mac

Does anyone know of an application (for mac) which will format a page of html code nicely?
ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sections of the code to make it more readable.
I've been trying Coda and Expresso - Expresso has the feature to minimize/collapse code but does not seem to be able to format code.
Please help?
TextMate is a really cool app. There are hundreds of bundles for all possible languages.
Try TACO HTML Edit
or
JEdit (Freeware)
Bye.
Try using tidy. I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.
I use BBEdit for this.
Textmate will do a nice job.
If you are a java or ruby programmer, Intellj or Rubymine does an excellent job of auto-formatting code(including HTML).

Resources