Fork me on GitHub
#vim
<
2021-04-20
>
Noah Bogart14:04:19

vim-iced question: how do I set the g:iced_enable_clj_kondo_analysis to {v:true}? what should i put in my .vimrc?

dave15:04:41

I don't use iced, but this sounds like a general VimL question. The syntax is:

let g:iced_enable_clj_kondo_analysis = v:true

dave15:04:55

You can put that anywhere in your vimrc.

grazfather15:04:35

yep, the g: and v: are just part of the name, representing the namespace

Noah Bogart15:04:16

thank you. none of the other options in my vimrc use v:true, and the brackets threw me off

dave15:04:09

I believe 1 is equivalent. I mostly use let g:whatever = 1 in my vimrc.

👍 3
Noah Bogart15:04:07

oh that's very good to know

juhoteperi15:04:14

I think the brackets are just part of vim help format, but not sure what they mean.

juhoteperi15:04:54

If you check for example :help map, both the command and the docstring use { } to mark the arguments.

mamapitufo15:04:34

I think {foo} is for formatting as code, similar to the backticks in markdown

mamapitufo15:04:14

or rather to "highlight differently" according to helphelp.txt

juhoteperi15:04:27

v:false and v:true are also help subjects themselves, so maybe it can also refer to that

juhoteperi15:04:34

Though ctrl-] doesn't jump to e.g. v:true from {v:true}

mamapitufo15:04:00

I think the braces don´t link, but the backticks do

mamapitufo15:04:30

> When referring to a Vim command and to create a hot-link, place the > name between two backticks, eg. inside :filetype. You will see this is > highlighted as a command, like a code block (see below).

mamapitufo15:04:01

but under "Highlighting" in helphelp: > The following are highlighted differently in a Vim help file: > - a special key name expressed either in <> notation as in <PageDown>, or > as a Ctrl character as in CTRL-X > - anything between {braces}, e.g. {lhs} and {rhs}

Noah Bogart18:04:10

thanks for input everyone. i've got the setting correct now, but i'm not seeing anything change. should there be any visual changes? nevermind, i just can't read