Ⅰ. 插件描述
the world first vimshell plugin that you can run "vim" command on ssh on vimshellⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ujihisa/vimshell-ssh'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ujihisa/vimshell-ssh'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ujihisa/vimshell-ssh'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ujihisa/vimshell-ssh
Ⅳ. 文档说明
# vimshell-ssh
usage
iexe sshon your vimshell- use
vimcommand remotely - wow!
dependencies
- vimshell
- netrw (should be built-in in your Vim)
Optional
unite-ssh (this replaces netrw)
- unite.vim (unite-ssh's dependency)
- vimfiler (unite-ssh's dependency)
known issues
netrw uses
:!- solution:
- use my forked version of netrw
- or use unite-ssh
netrw changes options like cursorline
- solution:
- write
let g:netrw_cursorline = 0in your vimrc - or use my forked version of netrw
- or use unite-ssh
- after vim command the ssh iexe buffer cursor location will be still in the vim command's line
for some reasin vim command failed on my remote zsh
- run bash on the server just in case
exportPS1, PS2 and RPS to simpify them
articules
- http://vim-users.jp/2011/06/hack218/ (written in Japanese)
Author
Tatsuhiro Ujihisa
License
MIT