From cb4b85e1d2b82ac06923282ecab42f9368e2c563 Mon Sep 17 00:00:00 2001 From: Zeh Rizzatti Date: Mon, 7 Jan 2013 01:47:06 -0300 Subject: [PATCH] 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. --- plugin/sensible.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index a3e5ad1..32d1b8c 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -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