Saturday, July 31, 2010

Re: [SOLVED] Re: Enter a directory automatically when opening files with gvim , possible ?

On Sat, Jul 31, 2010 at 3:01 PM, Aaron Lewis <aaron.lewis1989@gmail.com> wrote:
> @Xell:  I checked `help autocmd' , just could you do a small explanation
> on this part `%:p:h:gs/ /\\ /' ?
>        Thanks !
>

Just read ":help filename-modifiers". In a nutshell, % is the file,
and :p:h modifiers generate the path, and :gs substitutes all the
blanks with an escape slash.

BTW, I use gvim under Windows, so I don't know if it needs this
operation in KDE.

Regards.
Xell

--
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: