sponsor Vim development Vim logo Vim Book Ad

nosql.vim : Provides syntax highlighting for NoSQL tables, or any tab-separated (TSV) tables

 script karma  Rating 1/1, Downloaded by 978  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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
nosql-0.2.tar.gz 0.2 2008-09-11 6.0 Bill Powell Added note on using nosql.vim for plain TSV tables, and also perl snippet for accessing TSV tables in perl with DBI and DBI::AnyData.
nosql-0.1.tar.gz 0.1 2007-10-20 7.0 Bill Powell Initial upload
ip used for rating: 18.191.102.112

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github