set statusline+=%02n " buffer number
set statusline+=%{StatuslineBufferCount()} " highest buffer number
set statusline+=:
- if has('modify_fname')
+ if has('modify_fname') && v:version >= 700 " some functions need 7.0
set statusline+=%{StatuslineRelativeFilename()} " path to current file
set statusline+=\ " space after path
else
" Settings for securemodelines.
" Only allow items I need (also includes spl which is not enabled by
" default).
- let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm',
- \ 'sw', 'sts', 'noet']
+ if v:version >= 700 " need lists
+ let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm',
+ \ 'sw', 'sts', 'noet']
+ endif
" Settings for the NERD commenter.
" Don't create any mappings I don't want to use.