mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-12 13:03:47 -05:00
Change undodir regex conditional
undodir is set to '.' by default. '^\.\%(,\|$\)' will accept the default and if '.' if the first on a list, the option is set, as intended.
This commit is contained in:
@@ -61,7 +61,7 @@ if isdirectory(expand('~/.cache/vim'))
|
||||
if &backupdir =~# '^\.,'
|
||||
set backupdir^=~/.cache/vim/backup//
|
||||
endif
|
||||
if exists('+undodir') && &undodir =~# '^\.,'
|
||||
if exists('+undodir') && &undodir =~# '^\.\%(,\|$\)'
|
||||
set undodir^=~/.cache/vim/undo//
|
||||
endif
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user