pkt / lh-vim

Luc Hermitte's lh-vim to save it from google code closing
0 stars 0 forks source link

_vimrc_local.vim in paths containing spaces does not work #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go into a folder with spaces.
2. Create a _vimrc_local.vim file.
3. Open vim.

What is the expected output?

The _vimrc_local.vim file should be loaded normally, without any error.

What do you see instead?

The error „E172: Only one file name allowed: source /home/cristi/spaced
path/_vimrc_local.vim”

What version of the product are you using? On what operating system?

1.7

Please provide any additional information below.

The problem occurs because the path is not escaped when constructing the
argument to „exe”, so that the „source” command thinks that spaces
represent filename separators.

The attached patch solved the problem.

Original issue reported on code.google.com by cristikl...@gmail.com on 13 May 2009 at 8:20

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks cristiklein, 

I'll have look soon at your patch.

Original comment by luc.herm...@gmail.com on 13 May 2009 at 9:38

GoogleCodeExporter commented 9 years ago

Original comment by luc.herm...@gmail.com on 13 May 2009 at 9:53

GoogleCodeExporter commented 9 years ago
Fixed in revision r180.

Original comment by luc.herm...@gmail.com on 17 May 2010 at 2:19