vim-rename2


Ⅰ. 插件描述

Plugin for VIM which allows to rename file even it is open.

Ⅱ. 基本信息

创建日期:  2011-05-03
使用用户:  19
Github星:  1
插件作者:  Remigijus Jarmalavičius

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

==========

VIM RENAME

A command and function that basically does a ":saveas <newfile>" then removes the old filename on the disk.

This plugin is forked from::

http://www.vim.org/scripts/script.php?script_id=2724

With only one fix so far: allows to rename files even file path has spaces.

Simple usage

When you editing a file and you need to rename it, in command mode execute::

:Rename new_file_name.txt

VIM-BUNDLE

This plugin should work with VIM bundle, so checkout this repo in bundle folder.

If you are not using VIM bundle, then make sure you have the same file in your VIM plugin directory as this repo has.

Authors

Original author Christian J. Robinson, contributed by Manni Heumann and Remigijus Jarmalavičius.

添加新评论