Useful to debug color schemes but not used by default.
+ " Return current syntax group in brackets or nothing if there's none.
+ function! StatuslineSyntaxGroup()
+ let l:group = synIDattr(synID(line('.'), col('.'), 1), 'name')
+ if l:group != ''
+ return '[' . l:group . '] '
+ else
+ return ''
+ endif
+ endfunction
+
set statusline=
" on the left
set statusline+=%02n " buffer number
set statusline=
" on the left
set statusline+=%02n " buffer number