fix nomodifiable setting

This commit is contained in:
Stefan Liebl 2022-04-21 19:42:10 +02:00
parent ab8e1ddc1d
commit 6d3ba881c4

View File

@ -230,12 +230,7 @@ set patchmode=
" \ endif " \ endif
" set nomodifiable on writeprotected files " set nomodifiable on writeprotected files
autocmd BufReadPost * autocmd BufReadPost * if &readonly == 1 | setlocal nomodifiable | endif
\ if &readonly == 1 |
\ execute ':set nomodifiable' |
\ else |
\ execute ':set modifiable' |
\ endif
" read all files on got of focus " read all files on got of focus
" autocmd FocusGained * execute " autocmd FocusGained * execute
" save all files on loss of focus " save all files on loss of focus