aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-08 21:44:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-08 21:45:23 +1200
commit81c17d5551c399c9170ee06162aa0b4a7fbcde93 (patch)
treee42ff5d8809db7f9a3f72947a6852c27c2f37716 /vim/autoload
parentComplete documentation of 'formatoptions' choices (diff)
downloaddotfiles-81c17d5551c399c9170ee06162aa0b4a7fbcde93.tar.gz
dotfiles-81c17d5551c399c9170ee06162aa0b4a7fbcde93.zip
Drastically simplify $MYVIM handling
It was a fun exercise, but it's a pretty perverse situation to set up. People generally don't put commas in their runtime directory names, and it's not too out of order simply to tell them not to do that if they do. This removes the need for two small utility functions.
Diffstat (limited to 'vim/autoload')
-rw-r--r--vim/autoload/vimrc.vim21
1 files changed, 0 insertions, 21 deletions
diff --git a/vim/autoload/vimrc.vim b/vim/autoload/vimrc.vim
index f5cad283..b3a28062 100644
--- a/vim/autoload/vimrc.vim
+++ b/vim/autoload/vimrc.vim
@@ -1,26 +1,5 @@
" Utility functions for use in .vim/vimrc only
-" Escape a text value for :execute-based :set inclusion as an option value
-function! vimrc#EscapeSet(string) abort
-
- " Escape all the characters that `:help option-backslash` warns us about
- return escape(a:string, '\ |"')
-
-endfunction
-
-" Escape a text value for :execute-based :set inclusion as an element in
-" a comma-separated option value
-function! vimrc#EscapeSetPart(string) abort
-
- " Message to future Tom: yes, the comma being the sole inner escaped
- " character here is correct. No, we shouldn't escape backslash itself.
- " Yes, that means it's impossible to have the literal string '\,' in a part.
- " Yes, this reflects what Vim does internally. Read the source of
- " copy_option_part() in vim/src/misc2.c to confirm.
- return vimrc#EscapeSet(escape(a:string, ','))
-
-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#Ensure(string) abort