Skip to content

ThomasSmyth/yaq-vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yaq-vim

vim Syntax Highlighting and Indenting Support for k and q/kdb+

Yet another vim syntax highlighting for kdb+, forked from vim-qkdb-syntax by katusk, which is derived from vim by Simon Garland. There is additional inspiration from qvim by patmok.

This repo adds special highlighting for:

  • Query keywords, select, update, upsert, insert, exec, delete, by and from.
  • Most keywords up to kdb+ v4.0 2022.09.30.

Installation

This guide assumes your vim configuration files are located within your home directory.

Ensure syntax highlighting is enabled in ~/.vimrc.

syntax on

Copy the \*.vim files from syntax and indent to their corresponding directories under ~/.vim/, creating them if need be.

If it does not exist then copy filetype.vim to ~/.vim/. If filetype.vim already exists then just insert the relevant k & q lines from this repo.

Most of the work is done in k.vim (which is loaded into q.vim) as q "only" adds the functions in .q as primitives, and relaxes the restriction on underscores in names.

About

vim syntax highlighting for k and q/kdb+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%