Ⅰ. 插件描述
script to let vim auto scroll text for youⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/autoscrollmode'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/autoscrollmode'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/autoscrollmode'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/AutoScrollMode
Ⅳ. 文档说明
Sometimes you just read text inside vim. You spend hours in Normal mode, not doing nothing, just scrolling text and pressing hjkl keys all the time. In such situations this script becomes very useful.
To enter Auto Scroll Mode, install this script first,
and than activate it pressing <F21> key from Normal mode (Pause on keyboard)
To start scrolling text type 'l', for more info read next section.
COMMANDS
Commands used in Auto Scroll Mode to change how Vim will scroll text
0-9 : change type of movement to:
"1" : character, default
"2" : word
"3" : WORD
"4" : line
"5" : half page
"6" : full page
"7" : full screen
"8" : sentence
"9" : paragraph see 'paragraphs'
"0" : section see 'sections'
Commands used to change how much time will Vim
sleep until the cursor is moved, default: Vim will sleep forever
Note: period can be negative, in that case period is changed to
positive but direction is switched i.e. up becomes down.
"h" : decrease sleep period for 1 millisecond
"l" : increase sleep period for 1 millisecond
"k" : divides sleep period for 2
"j" : multiplies sleep period for 2
"`" : set sleep period to zero, default
other useful commands:
"r" : clean and redraw screen
<Space> : toggle pause, text stop scrolling
<Enter> : toggle backward/forward movement
<Esc> : exit AutoScrollMode, enters Normal Vim mode
CTRL-C : immediately exit in Normal Vim mode