Ⅰ. 插件描述
switch to colemak in insert modeⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/colqer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/colqer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/colqer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/colqer
Ⅳ. 文档说明
This script allows to quicky switch to Colemak from a Qwerty keyboard, which is usefull if you are learning Colemak or want to come back to the Qwerty keybinding from a Colemaek keyboard.
This is a an approximation of the langmap feature, but which works even if your vim version has been compiled with the langmap feature.
Depending of your keyboard layout, this script will either map the qwerty key into Colemak key in insert mode
or map the Colemak key to qwerty in command mode.
So whatever your keyboard is Qwerty or Colemak, you could type text in Colemak and command in Qwerty.
This script is disabled by default, to activate it, type ; (on a Qwerty keyboard) or o )on a Colemak one).
Mapping:
<Leader>; toggle script on Qwerty keyboard
<Leader>o toggle script activation on a Colemak keyboard
(if you don't know wthat Leader is, it would probably be "" in your case, so the mapping are ; and o)
Warning, this script might interfere with your personal mapping, in that case the easiest way to do it is to delete or modify the problematic mapping/unmapping lines in the script.