vim

For discussion on all things (neo)vim.
dave 2020-01-15T17:04:52.007Z

i think i may have caught a regression around the behavior of gg in neovim. question for vim and neovim users alike: if you go to an arbitrary line in a file, go to a column > 1, and press gg, where does your cursor land on line 1? does it land at line 1, column 1, or does it land on line 1 at the same column where you were?

nate 2020-01-15T17:15:47.007300Z

line 1 column 1, version: v0.5.0-dev (git201909172023)

dave 2020-01-15T17:21:09.007800Z

i upgraded this morning to 0.5.0+ubuntu1+git202001142018-3d1531a-00e710e-8b2f2dc~ubuntu16.04.1, and that's when i noticed the change in behavior

dave 2020-01-15T17:22:06.008300Z

the fact that you're landing on line 1 column 1 on a slightly older version is a great sanity check! 😄

dave 2020-01-15T17:22:14.008500Z

i knew i remembered it working that way

dave 2020-01-15T17:23:24.009700Z

i ruled out it being related out to my vim config by running vim -u NONE -- still landed on line 1, column != 1

dave 2020-01-15T17:23:48.009900Z

i've filed an issue with neovim https://github.com/neovim/neovim/issues/11719

nate 2020-01-15T17:37:16.010400Z

wow, very nuanced, nice catch!

dave 2020-01-15T17:45:35.010800Z

i think it's my only contribution to neovim thus far, but hopefully it will save somebody a headache 🙂

tpope 2020-01-15T18:01:00.011Z

:h 'startofline'

dave 2020-01-15T18:07:23.011600Z

i don't think i've ever had that set in my vimrc

dave 2020-01-15T18:07:49.012200Z

i wonder if maybe neovim used to default that to true, then recently changed the default to false

dave 2020-01-15T18:07:59.012400Z

what is the default in vim?

2020-01-15T19:47:33.014700Z

@dominicm Hi , what replant#ui#refresh() does ? When I execute I should see the equivalent output of a reset on repl right ?

tpope 2020-01-15T19:49:04.016Z

vim default is on

dave 2020-01-15T19:54:19.016700Z

aha -- looks like the default did change from on to off in neovim last month: https://github.com/neovim/neovim/commit/3aa95ef27eb8817bc2ceddb6caf2b209e00a5e8d

1
nate 2020-01-15T20:09:10.018200Z

interesting to read through the things they turned (and did not turn) on by default: 1. https://github.com/neovim/neovim/issues/2676 (previous list, now completed) 2. https://github.com/neovim/neovim/issues/6289 (continuation list, in progress)

tpope 2020-01-15T20:23:09.019Z

every time i think neovim might be settling down into something usable they pull some bs like this

tpope 2020-01-15T20:24:55.019300Z

my god, even 'hidden' is up for consideration

dave 2020-01-15T20:26:19.019600Z

yeah, i'm fairly unhappy about this, because it breaks plugins

dave 2020-01-15T20:26:24.019800Z

including my plugin 🙂

dave 2020-01-15T20:26:55.020200Z

i mean, it was a trivial fix - i changed an instance of gg to gg0 - but still

dave 2020-01-15T20:28:12.021200Z

in general, if you're trying to make a drop-in replacement for something, you should avoid having your thing act differently whenever you can help it

dave 2020-01-15T20:29:11.022400Z

when i was evaluating neovim, i was able to use my vimrc as-is (plugins and all) and it appeared to behave exactly the same, and that's one of the reasons that i chose to switch to neovim

dominicm 2020-01-15T20:35:07.023100Z

Yeah, you should.

tpope 2020-01-15T20:35:07.023300Z

whispers plugins should be able to handle non-default options

1👍
dominicm 2020-01-15T20:35:36.023400Z

It will attempt to find a stop function, call tns/refresh, then call a go/start function.

dave 2020-01-15T20:39:11.023800Z

ok, yes. fair. good point 🙂

tpope 2020-01-15T20:39:53.024400Z

i just think it's weird someone would think the jump to top of file command should preserve column

tpope 2020-01-15T20:40:31.025100Z

'nostartofline' affects like 20 things and maybe 3 of them are improvements

2020-01-15T21:15:14.029700Z

i jotted down some steps for getting vim-iced to work (from scratch) with neovim and a socket repl: https://gist.github.com/sogaiu/268a331ddf294db3ed8796c8ee36c758 this includes a small plug for alc.start-repl -- a cmd line tool for starting socket repls after a clojure process has started :) @liquidz.uo there were a few things i had to do that i didn't find at: https://liquidz.github.io/vim-iced/ 1. i didn't see any mention of :PlugInstall during the installation of vim-plug. if that is missing, may be it's a nice addition for the not-so-experienced? 2. i got some error about needing to add set hidden to an initialization file, and i didn't find this in the setup instructions. adding it seemed to fix things. in any case, thanks for adding some socket repl support!

2020-01-15T23:40:39.030300Z

@sogaiu Cool! Thank you very much! I'll add them to documents!

1👍