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

  • SEARCH
  • Home
  • 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 8888343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:00:27+00:00 2026-06-14T22:00:27+00:00

In Vim there are certain built-in compound commands which have no timeout, for example:

  • 0

In Vim there are certain built-in compound commands which have no timeout, for example: g waits forever for the next keystroke. I would like to create my custom compound binding to behave like that. But, preferably, other bindings shouldn’t be affected (I imply the possibility of using set notimeout setting here). If that’s not possible to achieve for a particular binding then I guess I have to fall back to set notimeout setting. So are there any suggestions?

  • 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. Editorial Team
    Editorial Team
    2026-06-14T22:00:28+00:00Added an answer on June 14, 2026 at 10:00 pm

    If you are fine with not working showcmd and cursor positioned in bottom-right corner while pending for next character then use getchar():

    nnoremap <Plug>PluginAction-a do-something-here-for-key-a
    function s:Getchar()
        let char=getchar()
        if type(char)==type(0)
            return nr2char(char)
        endif
        return char
    endfunction
    nmap <expr> \g "<Plug>PluginAction-".<SID>Getchar()
    

    .

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

Sidebar

Related Questions

Is there a shortcut in Vim for going to the next word which is
Is there a function in Vim which will switch to a buffer? For example,
Is there a way to have % in vim find the next ([{ or
Are there any plugins or built-in methods in Vim for performing refactoring on C
Is there a way to have hanging operators when indenting with tabs in Vim?
Is there a way to have VIM mark it's line numbers with (git) diff
Is there any equivalent for Ctrl + Shift + End in VIM which can
How do I extend/modify vim highlighting for all filetypes at once? I have certain
Is there any Vim plugin that provide completition for D using OmniComplete? I have
Is there any way to make vim handle tab pressing by the next two

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.