Oni: :set nolist from init.vim file not being read

Created on 13 Feb 2018  路  4Comments  路  Source: onivim/oni

I have set nolist in my init.vim file (https://github.com/nwaywood/dotfiles/blob/master/oni/init.vim#L56) which is meant to hide invisible characters but it doesn't seem to be working. Here is what it looks like:

image

However, if I manually execute :set nolist as an ex command then it gets applied properly:

image

So it seems like Oni is failing to read/apply nolist when it is set from the init.vim file but applies it fine when set manually. I have also tried with a minimal init.vim file but it is still the same issue.

bug

Most helpful comment

This is probably due to #973.

Oni has its own set of Defaults, which currently is a bit too opinionated, and in cases like this it can clobber the user's settings, in this case the set list is over-writing yours.

Looks like we need to cut it down to the very basics Oni needs, and nothing more.

For now, you can use "oni.useDefaultConfig": false, to disable Oni's config.

Really if you are an experienced vim user it should be fine, but you can do what I did and take a look over it here and copy over anything you want into your init.vim, maybe in an Oni-only if statement.

All 4 comments

This is probably due to #973.

Oni has its own set of Defaults, which currently is a bit too opinionated, and in cases like this it can clobber the user's settings, in this case the set list is over-writing yours.

Looks like we need to cut it down to the very basics Oni needs, and nothing more.

For now, you can use "oni.useDefaultConfig": false, to disable Oni's config.

Really if you are an experienced vim user it should be fine, but you can do what I did and take a look over it here and copy over anything you want into your init.vim, maybe in an Oni-only if statement.

One workaround for now, until we trim down the settings in #973, is to add this to your config:

"vim.setting.list": false,

This will set nolist, after all the .vim files are sourced, so it will override those overly-opinionated settings.

@bryphe can confirm that workaround worked. Thanks! I'll keep an eye on #973 :)

I'll close this out as with #1811 set list was removed from the default config.

973 is still open to track the tab size changes and a few other bits however.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryphe picture bryphe  路  19Comments

rococode picture rococode  路  20Comments

hboon picture hboon  路  21Comments

phaazon picture phaazon  路  21Comments

jordwalke picture jordwalke  路  20Comments