I am currently using vim-airline in my macvim and I want to display the status of expandtab
whether it is set or not in the statusline.
I can find out the status of expandtab
by running the following command :set expandtab?
. From the vim-airline documentation I found that I can use something like this
let g:airline_section_b = '%{getcwd()}'
I modified it to
let g:airline_section_b = '%{expandtab?}'
but I am getting the error undefined variable: expandtab
.
Can someone kindly tell how I can retrieve the status of expandtab
and then show it in the status line. Thanks.