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 45807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:52:02+00:00 2026-05-10T15:52:02+00:00

is it possible to extend vim functionality via custom extension (preferably, written in Python)?

  • 0

is it possible to extend vim functionality via custom extension (preferably, written in Python)?

What I need ideally is custom command when in command mode. E.g.

ESC

:do_this

:do_that

  • 1 1 Answer
  • 0 Views
  • 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. 2026-05-10T15:52:02+00:00Added an answer on May 10, 2026 at 3:52 pm

    vim supports scripting in python (and in perl as well, I think).

    You just have to make sure that the vim distribution you are using has been compiled with python support.

    If you are using a Linux system, you can download the source and then compile it with

    ./configure --enable-pythoninterp  make sudo make install 

    Inside vim, you can type

    :version 

    to list the available features; if it has python support, you should see a ‘+python’ somewhere (a ‘-python’ otherwise).

    Then, to check the usage of the python module, you can type

    :help python 

    P.S: if you’re going to compile the vim sources, make sure to check the available configure options, you might need to specify –with-python-config-dir as well.

    P.P.S: to create a ‘custom command in command mode’ (if I understand correctly what you mean), you can create a function ‘MyFunction’ in a vim script (using python or the vim scripting language) and then invoke it with

    :Call MyFunction() 

    Check

    :help user-functions 

    for details

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use std::vector<BYTE> buffer(cbType); pType = (WM_MEDIA_TYPE*)&buffer[0]; or since C++11 std::vector<BYTE>… May 11, 2026 at 11:28 pm
  • Editorial Team
    Editorial Team added an answer I got this to work frameset.html <!DOCTYPE html PUBLIC "-//W3C//DTD… May 11, 2026 at 11:28 pm
  • Editorial Team
    Editorial Team added an answer You can implement an ActiveX control in .NET but you'll… May 11, 2026 at 11:28 pm

Related Questions

ReSharper has a nice feature called extend selection: by pressing CTRL+W (I think this
I'm looking for a perfect text editor :) The must have list: vim-like modal
Is it possible to extend LINQ-to-SQL entity-classes with constructor-methods and in the same go;
Is it possible to extend the interface builder's attribute inspector with additional attributes for

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.