neovim-auto-autoread


Ⅰ. 插件描述

Plugin that makes autoread actually work as expected in neovim

Ⅱ. 基本信息

创建日期:  2016-02-17
使用用户:  1
Github星:  3
插件作者:  Frans Skarman

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'thezoq2/neovim-auto-autoread'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'thezoq2/neovim-auto-autoread'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'thezoq2/neovim-auto-autoread'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/thezoq2/neovim-auto-autoread

Ⅳ. 文档说明

Neovim auto autoread

Makes the autoread feature in vim actually work as you expect it by triggering it at a 2 second interval.

Based on the answer to this stack overflow post but using the neovim plugin system.

Installation

Place the rplugin folder in your neovim directory or install using your favourite plugin

Vundle:
Plugin 'TheZoq2/neovim-auto-autoread'

Add the following to your .vimrc

    "Autoreload files when changed externally
    set autoread
    if has('nvim') "Prevent errors when using standard vim
        autocmd VimEnter * AutoreadLoop
    endif

Alternativley you can start the AutoreadLoop function manually when you want automatic reloads.

Configuration

If you feel like the autoread is too slow or is using too much performance, you can edit rplugin/python/autoreload.py and change the value in time.sleep to the amount of seconds to wait between reloads

Standard vim alternative

If you are using standard vim you can use this plugin instead.

添加新评论