mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
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:
parent
c1d99630c2
commit
be14e68a83
@ -10,3 +10,4 @@ set ruler
|
||||
set ts=2
|
||||
set wildmode=list:longest
|
||||
set completeopt=menu,longest
|
||||
set nowritebackup
|
||||
|
Loading…
Reference in New Issue
Block a user