Monday, November 26, 2012

Re: how to handle 'statusline' content with a variable ?

On Monday, November 26, 2012 5:14:02 AM UTC-6, bilibop project wrote:
>
> autocmd BufEnter,TabEnter,WinEnter * if &filetype=="help" || &filetype=="netrw" || &filetype=="nerdtree" || &filetype=="conque_term" || &filetype=="qf" | setlocal statusline& | else | exe "setlocal statusline=" . local_stl | endif
>
> [SNIP]
>
> It seems the problem is that the space characters behave as separators in the 'local_stl' when used as argument for the 'exe' command, even if they have been escaped before. I don't know how to deal with that.
>
>

Try "let &l:statusline=local_stl" instead of "exe 'setlocal statusline='.local_stl"

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: