nosql.vim : Provides syntax highlighting for NoSQL tables, or any tab-separated (TSV) tables
script karma |
Rating 1/1,
Downloaded by 1122 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Bill Powell |
|
script type |
syntax |
|
description |
This is a simple syntax file to color columns in NoSQL tables. It's a rather
heavily modified version of the VimOutliner syntax file. Currently it supports
up to 16 columns. If you need more than that, you can always tweak the file.
Since NoSQL tables are just TSV (tab-separated) tables, this syntax file will work on any
TSV table you like.
If you don't favor NoSQL, you can access TSV tables in perl, e.g., using
the DBI module and DBI::AnyData. For example, to access a list of photos:
our $fphotos = "photos.tsv";
our $pdbh = DBI->connect('dbi:AnyData(RaiseError=>1):');
$pdbh->func( 'photos', 'Tab', "$fphotos", 'ad_catalog' );
Note that you'll need to remove the ^A characters in the header line to access a NoSQL table
with DBI like this. That's the only difference I've noted.
Future versions of nosql.vim might include helpful mappings for navigation, deleting
columns, and so on, as well as syntax highlighting for NoSQL lists and templates.
NoSQL, of course, is a delightful and free collection of scripts that can
turn flat text files into databases. Instead of locking your data in binary
and slogging through phpMyAdmin, you can open your tables in Vim,
edit your data with your usual Vim flair, and then save your queries and
reports as shell scripts. If you don't yet have NoSQL installed, check out the
RESOURCES in the help file.
NoSQL homepage: http://www.scriptaworks.com/cgi-bin/wiki.cgi/NoSQL/HomePage?from=NoSQL.NoSQL
nosql.vim homepage: Coming soon. :) |
|
install details |
There's nothing fancy about nosql.vim; it's just a help file, a syntax
file, and a small ftdetect file that should fire up the syntax file when you
open a nosql table with an .nsq extension.
Simply unzip the tarball and the copy the subdirectories into your $VIM
directory. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.17.79.195
|