Best AutoFill in VIM

All,

I have been working with vim for some time now and love everything about it - there is only one thing that I really miss from IDEs like RubyMine, and that is advanced autocomplete.

For reference, here is my standard VIM setup: https://github.com/wrwright/.vim

I tried ctags with omnicomplete + supertab, and one main element that I missed is the ability to call a context-sensitive list of attributes / constants / methods. For example, when I learn RubyMotion, I would like to be helped to remember the IOS SDK constants / attributes / methods, but my VIM autostart stops offering class names ... or if it offers methods / attributes, it lists a ton of methods / attributes, which do not even belong to the class I'm working with.

I would like (a simple example) to be able to enter UIColor.bl and autofill it with UIColor.blueColor (or suggest if there are several options starting with "bl" that are UIColor properties.

RubyMine does it very well, and if I can get VIM to be smart in this way with autocompletion, it will be heavenly (and a great blessing when learning RubyMotion / iOS development).

I also tried SnipMate (and even the RubyMotion-specific option at https://github.com/rcyrus/snipmate-snippets-rubymotion ), but that doesn't seem to offer the features I'm looking for either.

+5
source share
3 answers

Vim omnicomplete + vim-ruby vim-rails NetBeans, Vim , .

.vimrc :

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
+5

, Rubymotion, - YouCompleteMe . (YCM ~ 2 ), , rubymotion, 40 . .

, , , , , , ycm .

,

set tags=./tags;,tags;

ycm .

let g:ycm_collect_identifiers_from_tags_files = 1

ctags ycm. . ctags, ruby.

rake ctags .

project.rb, , rake, .

+1

, Vim - ... .

As such, it cannot be expected to match any value of the IDE code. In addition, he relies entirely on the community to provide more standard support for the language. If Google or the rubymotion website didn’t help you find a serious β€œautocomplete” solution, I doubt you will find it here.

The process described in the blog below sounds fine, if not very accurately on the vim front panel.

http://rayhightower.com/blog/2013/02/12/automatic-ctags-with-rubymotion-and-vim/

-3
source

All Articles