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
Gotcha, then it must be something with lispwords I guess
Think I could have something like this in nvim
?
Looks like docstring + clojuredocs
Using fireplace.vim, you have the :Doc
command which does this
https://github.com/tpope/vim-fireplace#navigating-and-comprehending
Have you tried capital W
?
I have tried that, looks to behave the same as w
Interesting. On my machine, it behaves the way you want.
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
Isn't that just the docstring? i.e not including the user submitted examples?
I tried it with vim -u NONE
(taking my vimrc out of the equation) and the behavior is the same.
Not sure if lispwords is getting involved here?
Oops, I seem to have misunderstood the question. Nevermind
vim-iced have a command to fetch clojure docs https://liquidz.github.io/vim-iced/#_clojuredocs
normal behaviour in vim is for - and . to be word separators
vim-replant added a command for that to fireplace
I don't use it much, but it's there.
https://github.com/SevereOverfl0w/vim-replant/blob/master/ftplugin/clojure_replant.vim#L31 I think it's this 🙂
https://github.com/tami5/lispdocs.nvim might be of interest if you use conjure at all too