aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/argument.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-21 14:37:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-21 14:38:56 +1300
commit3e400157a4049bd6409e775f1be814de6281e936 (patch)
treee747ff4e09c268079aec824a258b3426f2a37aac /vim/autoload/argument.vim
parent1148b0042b17db0fd7555d156b83798aa1fe43f1 (diff)
downloaddotfiles-3e400157a4049bd6409e775f1be814de6281e936.tar.gz
dotfiles-3e400157a4049bd6409e775f1be814de6281e936.zip
Reshape autoloads into noun#Verb() pattern
Diffstat (limited to 'vim/autoload/argument.vim')
-rw-r--r--vim/autoload/argument.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/autoload/argument.vim b/vim/autoload/argument.vim
new file mode 100644
index 00000000..9e381000
--- /dev/null
+++ b/vim/autoload/argument.vim
@@ -0,0 +1,6 @@
+function! argument#Escape(argument) abort
+ return exists('*fnameescape')
+ \ ? fnameescape(a:argument)
+ \ : escape(a:argument, "\n\r\t".' *?[{`$\%#''"|!<')
+endfunction
+