]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Fix compatibility for older Vim versions.
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index bde35b6f739fe5d2aeafc7dff9427c47a6b1bc11..491979b73622e1145d87597a652bf6284fae4362 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -353,7 +353,7 @@ if has('statusline')
     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
@@ -748,14 +748,16 @@ if has('eval')
 " installing/removing/updating plugins simple. (Used for plugins with more
 " than one file.) Ignore errors in case pathogen is not installed.
     if v:version >= 700
-        silent! execute 'call pathogen#runtime_append_all_bundles()'
+        silent! execute 'call pathogen#infect()'
     endif
 
 " 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.