Fork me on GitHub
#vim
<
2020-01-15
>
dave17:01:52

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?

nate17:01:47

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

dave17:01:09

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

dave17:01:06

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

dave17:01:14

i knew i remembered it working that way

dave17:01:24

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

nate17:01:16

wow, very nuanced, nice catch!

dave17:01:35

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

tpope18:01:00

:h 'startofline'

dave18:01:23

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

dave18:01:49

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

dave18:01:59

what is the default in vim?

geraldodev19:01:33

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

dominicm20:01:07

Yeah, you should.

dominicm20:01:36

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

tpope19:01:04

vim default is on

dave19:01:19

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

4
nate20:01:10

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)

tpope20:01:09

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

tpope20:01:55

my god, even 'hidden' is up for consideration

dave20:01:19

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

dave20:01:24

including my plugin 🙂

dave20:01:55

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

dave20:01:12

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

dave20:01:11

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

tpope20:01:07

whispers plugins should be able to handle non-default options

👍 4
dave20:01:11

ok, yes. fair. good point 🙂

tpope20:01:53

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

tpope20:01:31

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

sogaiu21:01:14

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!

uochan23:01:39

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

👍 4