473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DB2, vim, and dbext

Anyone else out there a regular DB2 and vim user? A while back, Lennart
pointed me in the direction of an interesting database extension plugin
for vim (dbext.vim [1]). I took it for a spin, but couldn't get it
working properly under Linux (it looked as though it would /probably/
work under Windows with vim though).

I recently decided to revisit it and dig deeper into the plugin code to
see if I could figure out what was going on. The DB2 specific chunks of
code were in need of quite a bit of work (the Linux/UNIX bits were just
broken, and there were quite a few references in the metadata retrieval
routines to deprecated views like SYSCAT.PROCEDURES which should point
to SYSCAT.ROUTINES since DB2 v8).

To cut a long story short, I've now got it working. Before submitting a
(rather large) patch to the author, I'd like to give it a good test
run. Anyone interested? If so, drop me a mail and I'll send along a
copy (I can either provide the patch and/or the repackaged plugin with
the patch already applied).

I'd be particularly interested if someone could test it with vim on
Windows (I wound up ripping out and replacing all the DB2 launching
code for both Windows and non-Windows platforms, but haven't had the
chance to test it on Windows yet).

[1] http://www.vim.org/scripts/script.php?script_id=356
Cheers,

Dave.
Jun 27 '08 #1
6 3169
On 11 Cze, 05:26, "Dave Hughes" <d...@waveform.plus.comwrote:
Anyone else out there a regular DB2 and vim user? A while back, Lennart
pointed me in the direction of an interesting database extension plugin
for vim (dbext.vim [1]). I took it for a spin, but couldn't get it
working properly under Linux (it looked as though it would /probably/
work under Windows with vim though).

I recently decided to revisit it and dig deeper into the plugin code to
see if I could figure out what was going on. The DB2 specific chunks of
code were in need of quite a bit of work (the Linux/UNIX bits were just
broken, and there were quite a few references in the metadata retrieval
routines to deprecated views like SYSCAT.PROCEDURES which should point
to SYSCAT.ROUTINES since DB2 v8).

To cut a long story short, I've now got it working. Before submitting a
(rather large) patch to the author, I'd like to give it a good test
run. Anyone interested? If so, drop me a mail and I'll send along a
copy (I can either provide the patch and/or the repackaged plugin with
the patch already applied).

I'd be particularly interested if someone could test it with vim on
Windows (I wound up ripping out and replacing all the DB2 launching
code for both Windows and non-Windows platforms, but haven't had the
chance to test it on Windows yet).

[1]http://www.vim.org/scripts/script.php?script_id=356

Cheers,

Dave.
Dave,
Is it LUW specific or it also works for z/OS?
I remember trying the plugin once but gave up.
I wrote my own python script which executes query via ODBC and put it
on my VIM menu. Works more or less fine.
I can test the plugin on Windows provided it can connect to mainframe
(via DB2 connect i suppose).

regards
Zbikow
Jun 27 '08 #2
Zbikow wrote:
Dave,
Is it LUW specific or it also works for z/OS?
I remember trying the plugin once but gave up.
I wrote my own python script which executes query via ODBC and put it
on my VIM menu. Works more or less fine.
I can test the plugin on Windows provided it can connect to mainframe
(via DB2 connect i suppose).
Yup, it works with a z/OS target - just tried it from my Linux box and
it worked fine.
Cheers,

Dave.
Jun 27 '08 #3
Yup, it works with a z/OS target - just tried it from my Linux box and
it worked fine.

Cheers,

Dave.
Can you send me "repackaged plugin" then onto: zbikow1 (at) wp (dot)
pl. I'd like to try it.

Cheers & Thanx
Zbikow
Jun 27 '08 #4
Ian
Dave Hughes wrote:
Anyone else out there a regular DB2 and vim user?
Real Men use Emacs (and, therefore, sql-db2).

I can prove this using the fact that DB2 still comes with elisp packages
in sqllib/bin.
:-) No flame wars, please. I use vi(m) all of the time, too.

Jun 27 '08 #5
Ian wrote:
Dave Hughes wrote:
Anyone else out there a regular DB2 and vim user?

Real Men use Emacs (and, therefore, sql-db2).

I can prove this using the fact that DB2 still comes with elisp
packages in sqllib/bin.
:-) No flame wars, please. I use vi(m) all of the time, too.
http://xkcd.com/378/

:-)
Cheers,

Dave.
Jun 27 '08 #6
Ian
Dave Hughes wrote:
Ian wrote:
>Dave Hughes wrote:
>>Anyone else out there a regular DB2 and vim user?
Real Men use Emacs (and, therefore, sql-db2).

I can prove this using the fact that DB2 still comes with elisp
packages in sqllib/bin.
:-) No flame wars, please. I use vi(m) all of the time, too.

http://xkcd.com/378/

:-)
That is awesome. Best response to Emacs/VI flame bait ever. Thanks
for starting my Friday nicely. :-)

Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: edmundleungs | last post by:
In our veritas netbackup for DB2 on AIX, the backup could be done successfully and the backup image would be listed using bplist on the AIX client. I have made several backup image, but only one...
7
by: Anthony | last post by:
Hi, I'm a FoxPro programmer, but I want to learn python before it's too late. I do a lot of statistical programming, so I import SPSS into python. In my opinion, the best features of Visual...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.