Ⅰ. 插件描述
Use arrow-keys as text shifters instead of cursor moversⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'avakarev/vim-archer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'avakarev/vim-archer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'avakarev/vim-archer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/avakarev/vim-archer
Ⅳ. 文档说明
# archer.vim #
This plugin change behaviour of arrow keys.
They begin interact as text shifters instead of cursor movers.
So, what they will do?
- The "Up" arrow key deletes a blank line above the current line (a non-empty
line will not be deleted), while the "Down" arrow key inserts a blank line
above the current line. The result is hitting "Up" or "Down" moves the current
line up or down, in both normal as well as insert mode.
- Pressing "Ctrl-Up" and "Ctrl-Down", instead, deletes or inserts a blank line
below the current line. The result is that the text below the current line
moves up or down, respectively.
- Pressing "Left" arrow de-dents the current line, while "Right" indents it.
The result is that text shifts left and right, respectively.
All the plugin code I took from http://vim.wikia.com/
and Jeet Sukumaran's blog.
This plugin was created only by two reasons:
- I don't use keys arrow for text navigation and really line an idea to use
them as text shifters. - Implemented functionality takes too much space in my vimrc. It is much more
convenient include it as a git submodule.