vim

For discussion on all things (neo)vim.
martinklepsch 2021-05-05T12:00:00.111100Z

I feel like I’ve asked this before: did you change something in vim so the w motion interprets foo.bar as two words? similar for slashes I guess. From what I’m reading iskeyword should do that but the option has both . and / in there and still when I hit w I’m immediately placed at the end of the namespace

martinklepsch 2021-05-08T09:31:12.117500Z

Gotcha, then it must be something with lispwords I guess

emilaasa 2021-05-05T12:07:11.111500Z

Think I could have something like this in nvim?

emilaasa 2021-05-05T12:07:26.112100Z

Looks like docstring + clojuredocs

tvirolai 2021-05-05T12:32:59.112200Z

Using fireplace.vim, you have the :Doc command which does this

dave 2021-05-05T13:01:08.112700Z

Have you tried capital W?

martinklepsch 2021-05-05T13:09:45.112900Z

I have tried that, looks to behave the same as w

dave 2021-05-05T13:14:48.113100Z

Interesting. On my machine, it behaves the way you want.

dave 2021-05-05T13:15:34.113300Z

oetuh hey  foo.bar baz.quux
With my cursor at the beginning of this line, repeatedly pressing W takes me to the first character of each "word", so o, h, f, b

emilaasa 2021-05-05T13:16:03.113500Z

Isn't that just the docstring? i.e not including the user submitted examples?

dave 2021-05-05T13:16:45.113700Z

I tried it with vim -u NONE (taking my vimrc out of the equation) and the behavior is the same.

dominicm 2021-05-05T13:21:47.113900Z

Not sure if lispwords is getting involved here?

tvirolai 2021-05-05T13:58:53.114100Z

Oops, I seem to have misunderstood the question. Nevermind

nbardiuk 2021-05-05T14:09:09.114900Z

vim-iced have a command to fetch clojure docs https://liquidz.github.io/vim-iced/#_clojuredocs

👏 1
grazfather 2021-05-05T14:51:04.115100Z

normal behaviour in vim is for - and . to be word separators

dominicm 2021-05-05T16:02:42.116100Z

vim-replant added a command for that to fireplace

dominicm 2021-05-05T16:02:46.116300Z

I don't use it much, but it's there.

Olical 2021-05-05T20:01:02.116800Z

https://github.com/tami5/lispdocs.nvim might be of interest if you use conjure at all too