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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:14:22+00:00 2026-05-17T00:14:22+00:00

I am giving Vim a serious try for coding my Python apps. However, Vim

  • 0

I am giving Vim a serious try for coding my Python apps.
However, Vim is proving to be so flexible, I was thinking to use it as my main editor at work for writing lawyer/legal documents. The problem is that my mother tongue is not English but Greek. So, I have mapped Alt+Shift to change between English and Greek keyboard layouts.

The issue I am experiencing is that I have to press Alt+Shift each time I want to enter a Vim command (to return back to English). So it is Alt+Shift when I type my document, then Alt+Shift again to enter Vim commands. This defeats the purpose of using Vim, at least in terms of speed of use.

So my question is simple: Is there any way to avoid those frequent Alt+Shift keyboard layout changes just for entering Vim commands when writing in a non-Latin language (e.g., Greek)?

  • 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-05-17T00:14:23+00:00Added an answer on May 17, 2026 at 12:14 am

    This problem can be solved with the help of the keymap option.
    It allows to define an alternate keyboard mapping to use in modes
    requiring text input.

    To switch between the default and alternate keymaps while in Insert,
    Replace, or Command-line mode (but not Normal mode), use
    Ctrl+^ (Ctrl+6).
    Changing the keymap affects text input only; keyboard behavior in
    Normal mode stays the same regardless of the current keymap setting.
    One can leave Insert mode writing in Greek and immediately use
    Normal-mode keybindings without switching to a different keyboard
    layout. If one then returns to Insert mode or, for example, starts
    a search by typing /, Vim switches the keymap back to Greek
    automatically.

    The current keymap used in those text-entering modes is remembered
    between switchings to other modes. The only exception from this
    behaviour is made for Command-line mode which always starts with the
    default keymap, since most of the time it is required to type an Ex
    command (in ASCII). With the keymap option set, user is supposed
    to work in Vim keeping system keyboard layout set to English while
    switching Vim keymap with Ctrl+^ (instead of
    the system-wide layout switch).

    To enable, say, the UTF-8 Greek keymap permanently, add the following
    line to your .vimrc file.

    :set keymap=greek_utf-8
    

    There are many predefined keymaps for a large set of languages, you
    can browse them all in Vim itself using :e $VIMRUNTIME/keymap. Note
    that usually there are several keymaps provided for one language which
    differ only by character encoding, so that anybody could choose one
    that suits their configuration.

    I also recommend setting the options below to specify whether the
    keymap should be enabled by default in Insert mode and when entering
    a search pattern:

    :set iminsert=0 imsearch=-1
    

    See :help iminsert and :help imsearch for the detailed explanation.

    There is also a special language mode that, if I am not mistaken,
    was introduced in Vim earlier than keymap. It allows to achieve
    the behaviour similar to the one provided by keymap through manually
    specifying letter pairs that correspond to the keys on keyboard in
    a long string to be saved in the langmap option. Personally—my
    native language is not English, too—I prefer (and recommend) using
    the keymap way instead.

    In conclusion, I should emphasize that all of the above is equally
    applicable to any other language Vim has (or can be configured to
    have) a keymap for.

    See also my answer to a similar question ‘Vim “annoyance”
    with keyboard layouts
    ’ that has been asked since I originally
    gave this answer.

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

Sidebar

Related Questions

I'm a mac user giving vim a serious try. Most of the GUI editors
I am giving Vim xdebug plugin a try, but when I put cursor on
Internet Explorer is giving me a serious headache... What I want to do is
I'm just giving a try to unit testing in javascript/coffeescript with jasmine, very nice.
I'm giving a try to PascalScript, due to its features which could be very
Im giving Aptana Studio 3 a try. Well hoping to. I would like to
The layout editor is giving me StackOverflowErrors which ask me to exit eclipse everytime
String formatting in VIM is giving me headaches. I guess I feel very used
I'm giving C++0x a try and I was wondering how to solve the following
Matlab is giving me the error, Subscripted assignment dimension mismatch however I don't think

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.