Code Monkey home page Code Monkey logo

rainbow_csv.vim's Introduction

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

Rainbow CSV provides a way to highlight logical columns in different rainbow 
colors. This helps to understand data patterns in csv, tsv, etc files more 
quickly, especially when fields in the same column have different lengths. Every
10-th column has a default font color, so it's easy to find out column numbers

Screenshots:
http://img-fotki.yandex.ru/get/9153/15987922.0/0_f4fc0_bc89d2ee_XXXL.png
http://img-fotki.yandex.ru/get/6706/15987922.0/0_f4fbc_45554305_XXXL.png


There are 2 ways to enable csv columns highlighting:
        1. CSV autodetection based on buffer content
        2. Manual CSV delimiter selection

When new buffer is opened Rainbow CSV analyzes it's content and tries to
autodect whether it is a csv file or not; and if it is, what character this
csv is delimited by. This would work only if no other syntax rules has been
set for buffer. Buffer's file extension is irrelevant for autodetection, there
can be no extension at all or a buffer content could be read by vim from stdin -
autodetection would work in any case.

If autodetection mechanism was disabled or failed for some reason, you can 
specify a delimiter manualy: execute command 'RainbowDelim' and a character under 
the cursor would be used as the csv delimiter for columns highlighting.

If you don't like default column colors, you can define your own.

Commands:
  :RainbowDelim - Manualy select csv delimiter under cursor and highlight columns in different colors
  :NoRainbowDelim - Disable rainbow csv syntax for current buffer.

For more info read a help file.

rainbow_csv.vim's People

Contributors

mechatroner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.