Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 529761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:07:32+00:00 2026-05-13T09:07:32+00:00

I finally decided to try out Vim , as I am getting increasingly frustrated

  • 0

I finally decided to try out Vim, as I am getting increasingly frustrated by GUI editors. So far, I’m loving it, but I can’t find any help for a issue I’m having…

I am trying to map the command :Pyrun to :!python % in Vim using cmap. The mapping shows up fine if I type :cmap. However, on typing :Pyrun, I get this error message:

Not an editor command: Pyrun.

Here is what I’m trying in .vimrc:

:autocmd FileType python :cmap Pyrun<cr> !python %<cr>
:autocmd FileType python :cmap Intpyrun<cr> !python -i %<cr>

What can I do to solve this problem?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:07:32+00:00Added an answer on May 13, 2026 at 9:07 am

    I would try something like this in your .vimrc or your ftplugin/python_ft.vim

    command Pyrun execute "!python %"
    command Intpyrun execute "!python -i %"
    

    Then :Pyrun and :Intpyrun should work

    You could then map a function key to each

    map <F5> :Pyrun<CR>
    map <F6> :Intpyrun<CR>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've finally decided to make some tests for my apps but I'm stuck on
I just decided to replace phpMyAdmin by Mysql Query Browser ( finally I can
Finally decided to try Flash Builder rather than FlashDevelop and got caught up on
I'm a student and I decided to try out some of the problem sets
I recently decided to try jQuery 1.4, excited that I would finally have support
I finally decided to give SpringSource Tool Suite(STS) a try this morning, only to
I have finally decided to go with the Entity Framework since it has the
After using a few validation libraries I finally decided to roll my own implementation,
Ok, so I've finally decided on how to load my data I'm going to
I have been using DotNetOpenAuth v3.5.0.10357 for about a year now and finally decided

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.