how to execute Python in VIM

DENG polytechnique at gmail.com
Sat Mar 5 16:24:23 EST 2005


hi,

im a newbie to VIM(gVIM under WINXP), i want to execute python in vim
like press F5 in SciTE.

i try to search in google and config as follows in my _vimrc:
-----------------------------------------------------------
map <f5>:D:\python24\python.exe %

if has("autocmd")


  autocmd FileType python setlocal et | setlocal sta | setlocal sw=4
  autocmd FileType python compiler pyunit
  autocmd FileType python setlocal makeprg=python\ ./alltests.py
  autocmd BufNewFile,BufRead test*.py setlocal makeprg=python\ %


endif

----------------------------------------------------------

but neither F5 nor MAKE works.....

who can help me ?

thanks in advance




More information about the Python-list mailing list