Vim langmap Breaks插件(Bépo) [英] Vim langmap breaks plugin (bépo)

查看:98
本文介绍了Vim langmap Breaks插件(Bépo)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用bépo键盘映射( http://bepo.fr )并寻求完美的vim映射.

I am using a bépo keymap (http://bepo.fr) and seeking the perfect vim mapping.

到目前为止,我使用了 noremap的长列表,但对于许多绑定(例如,动作aw Ctrl + r ),第一次击键被很好地重映射,但是其他击键没有被重新映射,我认为这是预期的行为,但是那不是我所需要的.

So far I used a long list of noremap, but for many binding (for exemple, the motion aw or Ctrl+r), the first keystroke is well remaped but not the others, I reckon it's the expected behaviour, but then this is not what I need.

理想情况下,除了在键入文本时(在插入模式下以及在输入示例时),我将完全重新映射键盘(在map命令之前).我正在寻找的似乎是langmap,但是我在使用它时遇到了问题.

Ideally I would have my keyboard totally remaped in a higher level (before the map commands) except when typing text (in insertion mode and when typing a substitution for exemple). What I'm looking for seems to be langmap, but I have problems using it.

我在我的.vimrc文件中添加了此语言映射,它看起来很完美,但它破坏了一些我的插件.现在,SuperTab在插入模式下按 Tab 时,插入<Plug>SuperTabForward,按Enter键时为t<SNR>24_SelectCompletion(1).

I added this langmap to my .vimrc, It seems perfect but it broke some of my plugins. SuperTab now insert <Plug>SuperTabForward when pressing Tab in insertion mode, I have t<SNR>24_SelectCompletion(1) when pressing enter.

有人知道如何解决此语言映射问题或更好的方法来重新映射我的键盘吗?

Does someone know how to fix this langmap issue or a better way to remap my keyboard?

推荐答案

这是一个已知的错误,之前已经讨论过.我已经打了补丁(请参阅此处开头的线程),并希望是Bram即将包含此更改.

This is a known bug, that has been discussed before. I have made a patch (see the thread starting here) and hopefully Bram will include this change soon.

更新11/05/2014
此问题已由补丁7.4.502 修复.使用langnoremap选项可以解决此问题.

Update 11/05/2014
This has been fixed by patch 7.4.502. Use the langnoremap option to fix this.

这篇关于Vim langmap Breaks插件(Bépo)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆