vim-razer


Ⅰ. 插件描述

vim + razer RGB keyboards

Ⅱ. 基本信息

创建日期:  2017-06-26
使用用户:  1
Github星:  7
插件作者:  Daniel Nakhimovich

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-razer

Pre-installation

Make sure vim was compiled with python3
Run the following command

vim --version | grep python3

and look for +python3 or +python3/dyn.
If you see a - instead of a + then you need to reinstall vim with the python3 feature enabled.

Once you are sure you got vim with python3, install the open source razer-drivers
for your desired linux distribution.

Installation

Use your plugin manager of choice.

  • Pathogen

    • git clone https://github.com/DanManN/vim-razer ~/.vim/bundle/vim-razer
  • Vundle

    • Add Bundle 'https://github.com/DanManN/vim-razer' to .vimrc
    • Run :BundleInstall
  • NeoBundle

    • Add NeoBundle 'https://github.com/DanManN/vim-razer' to .vimrc
    • Run :NeoBundleInstall
  • vim-plug

    • Add Plug 'https://github.com/DanManN/vim-razer' to .vimrc
    • Run :PlugInstall

or for Arch-Linux users vim-razer is also available as an AUR package: vim-razer-gitAUR

Useage

Once everything is installed just open vim and admire the colors.

Known Issues

Certain vim versions with both +python3/dyn and +python/dyn (aka python2)
features enabled at the same time might not work with this plugin.
This is due to how vim dynamic python linking works and I can't really change it.
The only workaround I found so far is to disable python2 and hope no other plugins depend on it.
Alternatively using neovim works just fine.

Todo

  1. Get macro mode to work from visual mode
  2. Add more keyboard layouts.
    You can help me with that by doing one of the following.
  • If you have a keyboard that isn't supported yet run mapLayout.py and send me the output so I can add it.
  • Send a pull request if you add the layout to the plugin/layout.py file.

添加新评论