Fork me on GitHub
#vim
<
2021-05-05
>
martinklepsch12:05:00

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

dave13:05:08

Have you tried capital W?

martinklepsch13:05:45

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

dave13:05:48

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

dave13:05:34

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

dave13:05:45

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

dominicm13:05:47

Not sure if lispwords is getting involved here?

grazfather14:05:04

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

martinklepsch09:05:12

Gotcha, then it must be something with lispwords I guess

emilaasa12:05:11

Think I could have something like this in nvim?

tvirolai12:05:59

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

emilaasa13:05:03

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

tvirolai13:05:53

Oops, I seem to have misunderstood the question. Nevermind

nbardiuk14:05:09

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

👏 3
dominicm16:05:42

vim-replant added a command for that to fireplace

dominicm16:05:46

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

Olical20:05:02

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

emilaasa04:05:55

Ah cool - I'll give that a look! Thanks everyone

emilaasa12:05:26

Looks like docstring + clojuredocs