se titlestring=%{Show_TitleString()}
" Syntax highlighting. New versions will use syn enable instead.
-if version < 600
+if version < "600"
syn on
endif
endif
" Vim 5 hardcodes the size of numbers column to 8.
- if version >= 600
+ if version >= "700"
let l:numberwidth = &numberwidth
else
let l:numberwidth = 8
call Iain_Vars()
let &number = ! &number
- let l:i = 0
- let l:num_numbers = 0
- while l:i <= winnr("$")
- if getwinvar(l:i, "&number") == 1
- let l:num_numbers = l:num_numbers + 1
+ if version >= "700"
+ let l:i = 0
+ let l:num_numbers = 0
+ while l:i <= winnr("$")
+ if getwinvar(l:i, "&number") == 1
+ let l:num_numbers = l:num_numbers + 1
+ endif
+ let l:i = l:i + 1
+ endwhile
+
+ if l:num_numbers == 0
+ let g:iainextracolumns = 0
+ call Resize_Columns("-")
+ elseif g:iainextracolumns == 0
+ let g:iainextracolumns = 1
+ call Resize_Columns("+")
endif
- let l:i = l:i + 1
- endwhile
-
- if l:num_numbers == 0
- let g:iainextracolumns = 0
- call Resize_Columns("-")
- elseif g:iainextracolumns == 0
- let g:iainextracolumns = 1
- call Resize_Columns("+")
endif
endfun