diff options
-rw-r--r-- | vim/autoload/vimrc.vim | 2 | ||||
-rw-r--r-- | vim/vimrc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim index eccdbf95..f5cad283 100644 --- a/vim/autoload/vimrc.vim +++ b/vim/autoload/vimrc.vim @@ -23,7 +23,7 @@ endfunction " Expand the first path in an option string, check if it exists, and attempt " to create it if it doesn't. Strip double-trailing-slash hints. -function! vimrc#Establish(string) abort +function! vimrc#Ensure(string) abort " Get first part of the option string let part = vimrc#SplitOption(a:string)[0] @@ -27,7 +27,7 @@ set backup execute 'set backupdir^='.vimrc#EscapeSetPart( \ $MYVIM.'/cache/backup'.(vimrc#Version('8.1.251') ? '//' : '') \ ) -call vimrc#Establish(&backupdir) +call vimrc#Ensure(&backupdir) " Add some *nix paths not to back up if has('unix') @@ -61,7 +61,7 @@ set dictionary^=/usr/share/dict/words " Keep swap files in dedicated directory, named with full path execute 'set directory^='.vimrc#EscapeSetPart($MYVIM.'/cache/swap//') -call vimrc#Establish(&directory) +call vimrc#Ensure(&directory) " If the environment didn't set an encoding, use UTF-8, not ASCII if !exists('$LANG') @@ -185,7 +185,7 @@ endif if has('persistent_undo') " v7.2.438 set undofile execute 'set undodir^='.vimrc#EscapeSetPart($MYVIM.'/cache/undo//') - call vimrc#Establish(&undodir) + call vimrc#Ensure(&undodir) endif " Keep the viminfo file in the home Vim directory, mostly to stop history |