fix nomodifiable setting
This commit is contained in:
parent
ab8e1ddc1d
commit
6d3ba881c4
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user