Ⅰ. 插件描述
MacVim (or GVim) plugin for remote editingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'wannesm/rmvim-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'wannesm/rmvim-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'wannesm/rmvim-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/wannesm/rmvim.vim
Ⅳ. 文档说明
RMVIM
Summary
Vim GUI (MacVim, GVim) plugin to make remote editing more easy (based on
TextMate 2.0's rmate feature).
Requirements
This script is meant to be used with MacVim or GVim on a Mac or linux system.
It uses the Netrw functionality of vim to remotely edit files.
Installation
- Install the rmvim.vim plugin in your local .vim directory.
Or use a plugin system such as Plug:Plug 'wannesm/rmvim.vim - Copy the file
rmvim.vim/util/rmvimto your remote host to a directory that
is in your path. - If you want to use gvim instead of mvim add the following to your .vimrc:
let g:rmvim_cmd = 'gvim'
Other options include vimr, ...
Usage
Open a MacVim or GVim instance at least once. If this plugin is installed, this
will automatically activate a listener (an instance of the nc command).
Open a connection to your remote host with the command
ssh -R 52699:localhost:52699 yourhost
On your remote host start editing a file with the following command:
rmvim ./path/to/file
The remote file opens locally in MacVim.
Contact
Wannes Meert
http://people.cs.kuleuven.be/wannes.meert
Credits
With contributions from:
License
FreeBSD License
Copyright (c) 2011-2018, Wannes Meert (KU Leuven). All rights reserved.