Permalink
Browse files

Merge pull request #100 from jpmv27/load_bookmarks_at_init_with_empty…

…_file

Load bookmarks at init even with empty buffer
2 parents 8ab5d81 + 4196e44 commit 9bb669ed16b4e7f17105e617a6f87ca6c16b0227 @MattesGroeger committed on GitHub Oct 13, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugin/bookmark.vim
View
@@ -41,6 +41,8 @@ function! s:init(file)
endif
if a:file !=# ''
call s:set_up_auto_save(a:file)
+ elseif g:bookmark_manage_per_buffer ==# 0 && g:bookmark_save_per_working_dir ==# 0
+ call BookmarkLoad(s:bookmark_save_file(''), 1, 1)
endif
endfunction
@@ -364,7 +366,7 @@ function! s:bookmark_save_file(file)
" Managing bookmarks per buffer implies saving them to a location based on the
" open file (working dir doesn't make much sense unless auto changing the
" working directory based on current file location is turned on - but this is
- " a seious dependency to try and require), so the function used to customize
+ " a serious dependency to try and require), so the function used to customize
" the bookmarks file location must be based on the current file.
" For backwards compatibility reasons, a new function is used.
if (g:bookmark_manage_per_buffer ==# 1)

0 comments on commit 9bb669e

Please sign in to comment.