sponsor Vim development Vim logo Vim Book Ad

vim-jq : Runtime files for jq (the command-line JSON processor)

 script karma  Rating 0/0, Downloaded by 40  Comments, bugs, improvements  Vim wiki

created by
foo bar
script type
Vim runtime files for jq script files (the command-line JSON processor).

Syntax highlighting of:

    - Builtin filters and user functions
    - Module prefix, like NAME::
    - Imported JSON file prefix, like $NAME::
    - Objects like .foo


    - Move to next/previous function definition: ]], [[
    - Move to next/previous nested function definition: ]m, [m
    - Enhanced gf: when pressed on an included module path foo/bar edits the file foo/bar.jq if the file can be found in Vim's 'path',
      otherwise tries to edit foo/bar/bar.jq.
    - Move between matching if/elif/else/end, try/catch, and function definition boundaries def/; with %.

Include file searches:

    - Proper settings for include, includeexpr, suffixesadd and define.
    - Jq's default search paths for modules, ~/.jq and $ORIGIN/../lib/jq are appended to 'path' only if they exist.

install details
Run the following in your terminal:

    cd ~/.vim/pack/git-plugins/start
    git clone https://github.com/bfrg/vim-jq

Note: The directory name git-plugins is arbitrary, you can pick any other name. For more details see :help packages.

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
vim-jq.tar.gz 1.0 2021-07-23 7.4 foo bar Initial upload
ip used for rating:

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.