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 360  Comments, bugs, improvements  Vim wiki

created by
foo bar
 
script type
ftplugin
 
description
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

Mappings:

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

https://github.com/bfrg/vim-jq
 
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: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github