Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

statico (5018)

AOL IM: eisforian (Add Buddy, Send Message)


Co-author of Perl Testing: A Developer's Notebook []

Journal of statico (5018)

Thursday December 02, 2004
06:39 PM

vim abbreviations, sqlite2

[ #22112 ]

During my tutorials I found myself creating handfuls of scripts, all of which starting with the warning and strict pragmas. Following Damian Conway's example, I set up a Vim abbreviation:

:iab uw; use warnings;<CR>use strict;<CR>

I would really like it to only expand if I hit Enter after the abbreviation. I tried appending a \r, \n and , but no luck.

Also, Marty pointed out that I should be using DBD::SQLite2 instead of DBD::SQLite because of backward-incompatabilities in the newer SQLite libraries. That clears things up!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • You can't do what you want with an abbr, unless I'm wrong. Instead, you can do this: :imap uw; use warnings;use strict;

    It's not as pretty, because if you type "uw; foo" you won't see the uw; displayed until the space. Still, it works.