colemak.vim


Ⅰ. 插件描述

Remapping keys in Vim to work with a colemak keyboard layout.

Ⅱ. 基本信息

创建日期:  2013-11-10
使用用户:  1
Github星:  13
插件作者:  Mikael Muszynski

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'linduxed/colemak-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'linduxed/colemak-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'linduxed/colemak-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/linduxed/colemak.vim

Ⅳ. 文档说明

colemak.vim

This set of remappings adjusts Vim to work with the Colemak keyboard layout.

It started out as a copy of Shai Coleman's colemak.vim but quickly
changed when I realized that while some of his ideas were interesting, others
I didn't like at all.

The colemak.vim file has changed over the years to suit me and my
needs/preferences; changes are still introduced from time to time. This means
that it most likely isn't suitable for someone who's looking for a "faithful
translation of QWERTY Vim", since it's not an attempt to do that.

Main changes

unei (ijkl on QWERTY) replaces hjkl. A lot of movement mappings are
centered around this formation of keys:

  • ly for word back and forward.
  • ^L^Y for WORD back and forward.
  • LY for ^ and $.
  • NI for end of word back and forward.
  • jh for page up and down.

There are other ones in that region of the keyboard, but those are the ones
I use the most.

Undo, copy and paste are placed on the z, c and v, resembling the
Ctrl+zxcv counterparts in other applications. This is a remnant of Shai's
colemak.vim. Back then I didn't feel like making up something which breaks less
bindings, these days I'm just too used to it.

There are other changes, but you can look those up in the actual mapping file.

Other stuff

Apart from the file with the mappings a file with unmappings was added.
Together, these two files provide you with the commands :ColemakEnable and
:ColemakDisable, of which the first one is run automatically when starting
Vim.

Also, a word of warning: if you decide to use this, it's likely you'll have to
change the mappings for a bunch of your currently installed plugins.

添加新评论