aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 19:42:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 19:42:59 +1200
commit1558c26258df559f9702bcb826dd33e6a61d4edb (patch)
treeae59093f3c064de0d21dd8b2e15dfd7cc48d05aa
parentFlesh out comments and refactor vimrc auto funcs (diff)
downloaddotfiles-1558c26258df559f9702bcb826dd33e6a61d4edb.tar.gz
dotfiles-1558c26258df559f9702bcb826dd33e6a61d4edb.zip
Rename vimrc#Establish() to vimrc#Ensure()
Per the suggestion of NickNameNick in #kiwicon.
-rw-r--r--vim/autoload/vimrc.vim2
-rw-r--r--vim/vimrc6
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]
diff --git a/vim/vimrc b/vim/vimrc
index eb835930..db83efe0 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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