Support older vim on raspi
dblume

dblume commited on 2023-11-13 19:59:19
Showing 1 changed files, with 4 additions and 0 deletions.

... ...
@@ -107,7 +107,11 @@ let g:currentmode={
107 107
     \}
108 108
 
109 109
 function! Trim_brackets(fn)
110
+  if v:version > 800
110 111
     return trim(a:fn, "[]")
112
+  else
113
+    return a:fn
114
+  endif
111 115
 endfunction
112 116
 
113 117
 au InsertEnter * hi statusline guibg=Cyan ctermfg=26 guifg=Black ctermbg=7
114 118