Minkoo Seo wrote:

> 
> Does anybody have a nice solution for automatic code generation
> for Ruby in VIM?


Get the vim stuff for Ruby, and look in ruby-macros.vim

I used that to learn how to write my own simple autotext stuff.


For example:

# If I enter ifFILE, then vim should call the ifFILE function
iab <buffer> ifFILE <C-R>=<SID>ifFILE()

# which is
function! s:ifFILE()
     return "if __FILE__ == $0 \<Esc>o \<Esc>oend"
endfunction



-- 
James Britt

"The use of anthropomorphic terminology when dealing with
computing systems is a symptom of professional immaturity."

  - Edsger W. Dijkstra