diff options
Diffstat (limited to 'bundle/write-with-spaces/autoload/write_with_spaces.vim')
-rw-r--r-- | bundle/write-with-spaces/autoload/write_with_spaces.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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 |