From 58f3b377161e92faa8aade9ff6b39cb66286eb33 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 26 Mar 2015 22:30:19 -0400 Subject: Add write-with-spaces plugin Add a plugin to provide a way to write file names with spaces. Came from a Vim forum post. Handy to not have to always type backslashes if I want to save a file with spaces in it. --- bundle/write-with-spaces/autoload/write_with_spaces.vim | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 bundle/write-with-spaces/autoload/write_with_spaces.vim (limited to 'bundle/write-with-spaces/autoload') diff --git a/bundle/write-with-spaces/autoload/write_with_spaces.vim b/bundle/write-with-spaces/autoload/write_with_spaces.vim new file mode 100644 index 0000000..a7e40ca --- /dev/null +++ b/bundle/write-with-spaces/autoload/write_with_spaces.vim @@ -0,0 +1,3 @@ +function! write_with_spaces#Write(bang, filename) + execute "w".a:bang." ". substitute(a:filename, ' ', '\\ ', 'g') +endfunction -- cgit v1.2.3