Vim gets stuck when converting a read-only file
because it tries to write it beforehand. Fix #81
This commit is contained in:
@ -204,7 +204,7 @@ function! s:subst_func(line, regexp, func, ...) " {{{
|
||||
endfunction " }}}
|
||||
|
||||
function! s:save_vimwiki_buffer() "{{{
|
||||
if &filetype == 'vimwiki'
|
||||
if &filetype == 'vimwiki' && filewritable(expand('%'))
|
||||
silent update
|
||||
endif
|
||||
endfunction "}}}
|
||||
|
Reference in New Issue
Block a user