I guess you add the map at the end of python.vim, is that correct?

If so, I suggest you move your map command to before
   if exists('*<SID>Python_jump') | finish | endif

If no, please give your python.vim.


On Thu, May 9, 2013 at 8:35 PM, peiman khosravi <[email protected]>wrote:

> Hello,
>
> I'm experiencing something odd. Is it a bug or my lack of knowledge?
>
> I open a new window (cmnd-n). I type ':e python.py' and paste a bit of
> code in there, which I have copied from another document. The syntax is
> highlighted and all is good.
>
> I then press alt-p, which is a shortcut I have defined in my
> /vim/plugin/python.vim file ("map <buffer> π :w <CR>:!python % <CR>").
>
> Result: Nothing happens.
>
> I save the file and try again: nothing happens.
>
> I reopen the file, and the shortcut is now working. Am I doing something
> wrong?
>
> Many Thanks
> Peiman
>
>  --
> --
> You received this message from the "vim_mac" 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_mac" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message from the "vim_mac" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to