refreshbrowser


Ⅰ. 插件描述

A VIM plugin that refreshes a Firefox page which has FF-Remote-Control activated

Ⅱ. 基本信息

创建日期:  2015-03-31
使用用户:  1
Github星:  1
插件作者:  Hari Mahadevan

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Refreshbrowser
A VIM plugin that refreshes a Firefox page which has FF-Remote-Control activated

Description

This plugin allows refreshing a Firefox tab which has the FF-Remote-Control Firefox extension activated, directly from VIM.

Installation

To use, install the plugin using Vundle by adding the following line between your call vundle#begin() and call vundle#end() lines.

Plugin 'harikvpy/refreshbrowser'

Then add a convenient keyboard shortcut to your .vimrc file pressing which would invoke the function in the plugin. For example, my .vimrc has the 'r' key mapped as below:

nmap <leader>r :call RefreshFirefox()<CR>

With this in place, after I make any changes to my HTML plage, I can quickly press the <leader>r key combination to refresh the Firefox tab that has the page loaded.

Notes

Added function ForeAutoRefresh() to work with django-autorefresh. Integrate it with your VIM setup as above and add a shortcut key as explained above, replacing RefreshFirefox() with ForceAutoRefresh().

添加新评论