Browse Source

Handle bookmarks via #open_buffers()

References #164.
Marco Hinz 10 years ago
parent
commit
07be6b5fa9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      autoload/startify.vim

+ 4 - 1
autoload/startify.vim

@@ -500,7 +500,10 @@ function! s:show_bookmarks() abort
   for fname in g:startify_bookmarks
     let index = s:get_index_as_string(s:entry_number)
     call append('$', '   ['. index .']'. repeat(' ', (3 - strlen(index))) . fname)
-    execute 'nnoremap <buffer><silent>' index ':edit' fnameescape(fname) '<bar> call <sid>check_user_options()<cr>'
+    if has('win32')
+      let absolute_path = substitute(fname, '\[', '\[[]', 'g')
+    endif
+    let s:entries[index] = fname
     let s:entry_number += 1
   endfor