Monday, December 31, 2012

Re: Opening/creating a filename with a space using the :e command?

> :e ~/File name
>
> E172: Only one file name allowed
The space is causing vim to think it's trying to open more than one file

> :e "~/File name"
>
> E32: No file name
" is for a comment in vimscript, so vim is ignoring the rest of the command.

> :e ~/"File name"
>
> "~/" Illegal file name
This is the same problem, vim ignores everything after the ". Since this ends in a / vim thinks it's a directory, not a file.


> Do I need to do some kind of special escape sequence in order to open it, or is VIM just designed such that I can't do this?
All the previous posts about using the \ character to escape a space should work.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment