Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 50ef5caf767623000200004b

Execute immediate SQL

Sql string tranformation ...

Start file
insert into tabtmp
(no_part,
deptname,
firtname,
lastname
)
select
no_part,
deptname,
firtname,
lastname
from
emp e,dept d
where e.no_part=10
and d.no_part=10
and e.deptno=d.deptno;
End file
c_part:=10;
execute immediate
" insert into tabtmp"||
" (no_part,"||
" deptname,"||
" firtname,"||
" lastname"||
" )"||
" select"||
" no_part,"||
" deptname,"||
" firtname,"||
" lastname"||
" from"||
" emp e,dept d"||
" where e.no_part="||c_part||
" and d.no_part="||c_part||
" and e.deptno=d.deptno";

View Diff

1,16c1,18
< insert into tabtmp
< (no_part,
< deptname,
< firtname,
< lastname
< )
< select
< no_part,
< deptname,
< firtname,
< lastname
< from
< emp e,dept d
< where e.no_part=10
< and d.no_part=10
< and e.deptno=d.deptno;
---
> c_part:=10;
> execute immediate
> " insert into tabtmp"||
> " (no_part,"||
> " deptname,"||
> " firtname,"||
> " lastname"||
> " )"||
> " select"||
> " no_part,"||
> " deptname,"||
> " firtname,"||
> " lastname"||
> " from"||
> " emp e,dept d"||
> " where e.no_part="||c_part||
> " and d.no_part="||c_part||
> " and e.deptno=d.deptno";

Solutions by @_mhinz_:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @zulolosi

32 active golfers, 90 entries

Solutions by @_mhinz_:
67
#7 - Marco Hinz / @_mhinz_

01/11/2013 at 04:43PM

68
#>7 - Marco Hinz / @_mhinz_

01/11/2013 at 03:14PM

68
#>7 - Marco Hinz / @_mhinz_

01/11/2013 at 03:27PM

68
#>7 - Marco Hinz / @_mhinz_

01/11/2013 at 04:08PM

69
#>9 - Marco Hinz / @_mhinz_

01/11/2013 at 11:11AM

70
#>9 - Marco Hinz / @_mhinz_

01/11/2013 at 10:16AM

70
#>9 - Marco Hinz / @_mhinz_

01/11/2013 at 10:45AM

72
#>13 - Marco Hinz / @_mhinz_

01/11/2013 at 10:09AM