t9md / vim-ezbar

&statusline configuration helper for minimalist.
25 stars 2 forks source link

Undefined variable g:ezbar #4

Closed jrhorn424 closed 10 years ago

jrhorn424 commented 10 years ago

Adding the following line to the suggested ~/.vim/ezbar_config.vim produces the title error.

let g:ezbar.theme = 'default'
t9md commented 10 years ago

The file you based on is following default.vim? https://github.com/t9md/vim-ezbar/blob/master/autoload/ezbar/config/default.vim

g:ezbar need to be Dictionary, so entire flow to that line should

let g:ezbar = {}
let g:ezbar.theme = 'default'

First line is necessary so that Vim can understand g:ezbar is Dictionary data type. default.vim included that Dictionary initialization above let g:ezbar.theme so its strange.

jrhorn424 commented 10 years ago

That's what I was missing! I was expecting to be able to add any line whatever to the config and have it override the default configuration. I see now I misunderstood how configuration worked. Thanks!

t9md commented 10 years ago

Oh! thanks.