sculpt/vimrc: 'set nowritebackup'

By default, Vim renames a written file to a backup file suffixed with
"~" before writing the current buffer to a new file. Consequently, there
exists an intermediate state when no file exists. Should a client watch
such a file to obtain dynamic configuration info, it observes the empty
state.

Some components have builtin heuristics for such a situation. In
particular, the window layouter falls back to a predefined default
'rules' if no rules are provided as a file. So when interactively
editing window-layouter rules using Vim, it can happen that the manually
maintained rules get overwritten by the default rules.

By setting 'set nowritebackup', we can sidestep this issue by preventing
Vim from producing the bad intermediate state.
This commit is contained in:
Norman Feske 2020-09-08 15:47:24 +02:00 committed by Christian Helmuth
parent c1d99630c2
commit be14e68a83

View File

@ -10,3 +10,4 @@ set ruler
set ts=2
set wildmode=list:longest
set completeopt=menu,longest
set nowritebackup