molok/vim-smartusline — Issue #6: Error in function Smartuslinewin only on certain files
Author: totoUser
Created: 2012-01-18 09:45:58+00:00
State: open

I've got a problem when using smartusline which it happens only when I load
certain file like for example a `spell file add` (this file currently contains
only 2 words.
And it works without problem when launching vim without a file in argument or
when editing .vimrc

The error :

```
"~/.vim/spell/fr.utf-8.add" 2L, 28C
Error detected while processing function SmartusLineWin:
line 33:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
```

Here is an excerpt of my .vimrc :

```
set ruler	" always show current position
set laststatus=2	" set statusline

function! MyStatusLine()
let s = '» %t %([%M%R%H%W]%)%( ┤ %{&ft} ├ %) '
let s .= '%{&fenc?&fenc:"none"}/%{&fileformat} '
if &softtabstop == &shiftwidth
let s .= 'tab:%{&softtabstop?&softtabstop:&tabstop} '
else
let s .= 'sts:%{&softtabstop} sw:%{&shiftwidth} tab:%{&tabstop}'
endif
let s .= '%=' " right align

if exists('b:git_dir')
let s .= '| %{fugitive#statusline()} | '
endif

let s .= '%-14.(%l,%c%V%) %<%P ' " offset

return s
endfunction
set statusline=%!MyStatusLine()

"
" -------------
" Smartusline
" -------------
"
let smartusline_deep_eval = 1
let smartusline_string_to_highlight = '%t'

```