Giter Site home page Giter Site logo

Comments (3)

lyokha avatar lyokha commented on July 23, 2024

This plugin is not intended to manage layouts in Normal mode in such a sophisticated way. It has such an option for Insert mode only. Basically, you can remap . in Normal mode using standard Vim's approach.

from vim-xkbswitch.

petRUShka avatar petRUShka commented on July 23, 2024

@lyokha, idea is to remap it only in case layout is non English. In English layout it is good to have ..

So this feature should depend on xkbswitch.

from vim-xkbswitch.

lyokha avatar lyokha commented on July 23, 2024

@petRUShka, making sure that you always have an English layout when getting into Normal mode is one of the purposes of this plugin, so I do not understand exactly the reason of why you want this.

Perhaps, you want

let g:XkbSwitchNLayout = 'us'
let g:XkbSwitchILayout = 'us'

to always enter VIm with us layout. There is also keymap assistance in Normal mode to support commands like r and f. In my .vimrc I have lines

let g:XkbSwitchAssistNKeymap = 1    " for commands r and f
let g:XkbSwitchAssistSKeymap = 1    " for search lines
let g:XkbSwitchDynamicKeymap = 1
let g:XkbSwitchKeymapNames = {'ru' : 'russian-jcukenwin'}

for this.

Anyway, what you want seems to be not feasible to implement, as Vim's maps use symbols rather than keycodes, which means that map . is always the same for any keyboard layout as far as Russian dot is indistinguishable from English dot (meaning that the dot symbol is the same for both layouts).

from vim-xkbswitch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.