Wednesday, December 14, 2011

Using Quotes in VimScript for maps

If I run the following at the command line, it works.
:!python "%"

When I try the same in a VimScript, it doesn't.

Example:

autocmd FileType python map <buffer> <S-e> :w<CR>:lcd %:h<CR>:!
python "%"<CR>

How do I properly use quotes in VimScript?

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