On 07/06/11 21:53, Uri Moszkowicz wrote:
I don't know. I built my vim from 7.2 source. It's definitely there though:

" Features:                     Runs or compiles Groovy scripts.
  Indents code blocks.
"                                               Continues comments on
adjacent lines.  Provides
"                                               insert-mode
abbreviations.  F2 for plugin help.
...
" Abbreviations
ia <buffer> cl class {<CR>}<Esc>kf{i<C-R>=<SID>RemoveSpace()<CR>
ia <buffer> dcp this.class.classLoader.rootLoader.addURL(new
URL('file:///'))<Esc>F'i<C-R>=<SID>RemoveSpace()<CR>
ia <buffer> fl for( in ){<CR>}<Esc>kf(a<C-R>=<SID>RemoveSpace()<CR>
...

It's a bit besides the point though as I encounter abbreviations in
other files as well.

7.2 is already a bit old.

Try building Vim from the latest 7.3 sources, and I mean the *official* ones, directly from Bram Moolenaar. See:
http://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial
http://users.skynet.be/antoine.mechelynck/vim/compile.htm (Windows)
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm (Unix)

I don't see any abbreviations in the current $VIMRUNTIME/syntax/groovy.vim (version 0.1.10, dated 2010 Nov 29, by Alessio Pace and Tobias Rapp) and that is hardly surprising since the place for abbreviations is not in a syntax script. If anywhere, they may belong in a filetype-plugin, but there is no $VIMRUNTIME/ftplugin/groovy.vim


Best regards,
Tony.
--
        So Richard and I decided to try to catch [the small shark].
With a great deal of strategy and effort and shouting, we managed to
maneuver the shark, over the course of about a half-hour, to a sort of
corner of the lagoon, so that it had no way to escape other than to
flop up onto the land and evolve.  Richard and I were inching toward
it, sort of crouched over, when all of a sudden it turned around and --
I can still remember the sensation I felt at that moment, primarily in
the armpit area -- headed right straight toward us.
        Many people would have panicked at this point.  But Richard and
I were not "many people."  We were experienced waders, and we kept our
heads.  We did exactly what the textbook says you should do when you're
unarmed and a shark that is nearly two feet long turns on you in water
up to your lower calves: We sprinted I would say 600 yards in the
opposite direction, using a sprinting style such that the bottoms of
our feet never once went below the surface of the water.  We ran all
the way to the far shore, and if we had been in a Warner Brothers
cartoon we would have run right INTO the beach, and you would have seen
these two mounds of sand racing across the island until they bonked
into trees and coconuts fell onto their heads.
                -- Dave Barry, "The Wonders of Sharks on TV"

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to