Giter Club home page Giter Club logo

nosql.vim's Introduction

This is a FORK of http://www.vim.org/scripts/script.php?script_id=2047

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. :)

nosql.vim's People

Contributors

shirayu avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.